diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-06-05 22:26:11 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-06-05 22:26:11 +0200 |
commit | 20001de8b75d3cadcba9cfb7e22103c7fc341cef (patch) | |
tree | 88d89e192cf1a48e3f34a3d837d310f37a46912d | |
parent | 19ae581a7791158276c2e0f6241cd98816d0126f (diff) | |
download | glutte-o-matic-20001de8b75d3cadcba9cfb7e22103c7fc341cef.tar.gz glutte-o-matic-20001de8b75d3cadcba9cfb7e22103c7fc341cef.tar.bz2 glutte-o-matic-20001de8b75d3cadcba9cfb7e22103c7fc341cef.zip |
Change FAX signal polarity
-rw-r--r-- | src/glutt-o-logique/pio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/glutt-o-logique/pio.c b/src/glutt-o-logique/pio.c index d8780fe..c003881 100644 --- a/src/glutt-o-logique/pio.c +++ b/src/glutt-o-logique/pio.c @@ -37,7 +37,7 @@ #define GPIO_PIN_QRP_out GPIO_Pin_9 #define GPIO_PIN_D GPIO_Pin_11 #define GPIO_PIN_REPLIE_n GPIO_Pin_13 -#define GPIO_PIN_FAX_n GPIO_Pin_14 +#define GPIO_PIN_FAX GPIO_Pin_14 #define GPIOC_OUTPUT_PINS ( \ @@ -56,6 +56,7 @@ GPIO_PIN_U | \ GPIO_PIN_D | \ GPIO_PIN_REPLIE_n | \ + GPIO_PIN_FAX | \ 0 ) #include "GPIO/pio.h" @@ -146,7 +147,7 @@ void read_fsm_input_task(void *pvParameters) GPIO_ReadInputDataBit(GPIOC, GPIO_PIN_REPLIE_n) ? 1 : 0; pio_signals.sstv_mode = - GPIO_ReadInputDataBit(GPIOC, GPIO_PIN_FAX_n) ? 0 : 1; + GPIO_ReadInputDataBit(GPIOC, GPIO_PIN_FAX) ? 1 : 0; vTaskDelay(100 / portTICK_RATE_MS); } |