Skip to content

Commit

Permalink
Better invalid FSK Setting
Browse files Browse the repository at this point in the history
  • Loading branch information
LolloDev5123 committed Jan 10, 2024
1 parent 3bb9583 commit 63fb3a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ENABLE_DTMF_SIDETONES := 1
ENABLE_TX1750 := 0
# Keep this in stock options, and add option in mods for extra rogers
ENABLE_ROGERBEEP := 1
ENABLE_MDC := 1
ENABLE_MDC := 0

#==================== MODIFICATIONS ===================#
# AM Modulation Fix - 544 bytes
Expand Down Expand Up @@ -48,7 +48,7 @@ ENABLE_CW := 1
ENABLE_MESSENGER := 1
ENABLE_MESSENGER_DELIVERY_NOTIFICATION := 1
ENABLE_MESSENGER_MORE_ONE_LINE := 1
ENABLE_MESSENGER_WARN_UNKWN_FSK := 1
ENABLE_MESSENGER_SHOW_INVALID_FSK := 0
# 124 bytes
ENABLE_MESSENGER_SHOW_RX_FREQ := 1
# 124 (+20) bytes
Expand Down Expand Up @@ -358,8 +358,8 @@ endif
ifeq ($(ENABLE_MESSENGER_MORE_ONE_LINE),1)
CFLAGS += -DENABLE_MESSENGER_MORE_ONE_LINE
endif
ifeq ($(ENABLE_MESSENGER_WARN_UNKWN_FSK),1)
CFLAGS += -DENABLE_MESSENGER_WARN_UNKWN_FSK
ifeq ($(ENABLE_MESSENGER_SHOW_INVALID_FSK),1)
CFLAGS += -DENABLE_MESSENGER_SHOW_INVALID_FSK
endif
ifeq ($(ENABLE_MESSENGER_SHOW_RX_FREQ),1)
CFLAGS += -DENABLE_MESSENGER_SHOW_RX_FREQ
Expand Down
6 changes: 3 additions & 3 deletions app/messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -714,11 +714,11 @@ void MSG_StorePacket(const uint16_t interrupt_bits)

} else {
// Invalid/unrecognized FSK Data
#ifdef ENABLE_MESSENGER_WARN_UNKWN_FSK
#ifdef ENABLE_MESSENGER_SHOW_INVALID_FSK
#ifdef ENABLE_MESSENGER_MORE_ONE_LINE
snprintf(rxMessage[4], TX_MSG_LENGTH + 2, "? INVALID %s", &msgFSKBuffer[2]);
snprintf(rxMessage[4], TX_MSG_LENGTH + 2, "? %s", &msgFSKBuffer[2]);
#else
snprintf(rxMessage[3], TX_MSG_LENGTH + 2, "? INVALID %s", &msgFSKBuffer[2]);
snprintf(rxMessage[3], TX_MSG_LENGTH + 2, "? %s", &msgFSKBuffer[2]);
#endif
#endif
}
Expand Down

0 comments on commit 63fb3a9

Please sign in to comment.