Skip to content

Commit

Permalink
Add hold for F from fagci
Browse files Browse the repository at this point in the history
  • Loading branch information
LolloDev5123 committed Jan 7, 2024
1 parent 24a8b97 commit 1b72160
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ WORKDIR /app
COPY . .

RUN git submodule update --init --recursive
#RUN make && cp firmware* compiled-firmware/
RUN make && cp firmware* compiled-firmware/
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ ENABLE_NOSCANTIMEOUT := 1
ENABLE_KEEPNAMEONSAVE := 1
ENABLE_FASTER_CHANNEL_SCAN := 1
ENABLE_CW := 1 # CW Modulation
ENABLE_HOLD_NUM_FOR_F := 1 # Holding a number is the same as F+<N>
# ---- EXTRA: MESSENGER ----
ENABLE_MESSENGER := 1
ENABLE_MESSENGER_DELIVERY_NOTIFICATION := 1
Expand Down Expand Up @@ -324,6 +325,9 @@ endif
ifeq ($(ENABLE_CW),1)
CFLAGS += -DENABLE_CW
endif
ifeq ($(ENABLE_HOLD_NUM_FOR_F),1)
CFLAGS += -DENABLE_HOLD_NUM_FOR_F
endif
ifeq ($(ENABLE_BATTERY_CHARGING),1)
CFLAGS += -DENABLE_BATTERY_CHARGING
endif
Expand Down
8 changes: 4 additions & 4 deletions app/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,16 @@ static void MAIN_Key_DIGITS(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld) {
uint8_t Vfo = gEeprom.TX_CHANNEL;
uint8_t Band;

if (bKeyHeld) {
return;
}
if (!bKeyPressed) {
return;
}

gBeepToPlay = BEEP_1KHZ_60MS_OPTIONAL;

#ifdef ENABLE_HOLD_NUM_FOR_F
if (!gWasFKeyPressed && !bKeyHeld)
#else
if (!gWasFKeyPressed) {
#endif
gRequestDisplayScreen = DISPLAY_MAIN;
if (IS_MR_CHANNEL(gTxVfo->CHANNEL_SAVE)) {
uint16_t Channel;
Expand Down

0 comments on commit 1b72160

Please sign in to comment.