aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-05 22:26:11 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-05 22:26:11 +0200
commit20001de8b75d3cadcba9cfb7e22103c7fc341cef (patch)
tree88d89e192cf1a48e3f34a3d837d310f37a46912d
parent19ae581a7791158276c2e0f6241cd98816d0126f (diff)
downloadglutte-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.c5
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);
}