Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Ported fagci's spectrum to latest OEFW.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dual Tachyon authored and Dual Tachyon committed Sep 18, 2023
1 parent d252c1e commit 9bd4504
Show file tree
Hide file tree
Showing 11 changed files with 1,320 additions and 11 deletions.
15 changes: 11 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
TARGET = firmware

ENABLE_AIRCOPY := 1
ENABLE_AIRCOPY := 0
ENABLE_ALARM := 1
ENABLE_FMRADIO := 1
ENABLE_NOAA := 1
ENABLE_OVERLAY := 1
ENABLE_SWD := 0
ENABLE_NOAA := 0
ENABLE_OVERLAY := 0
ENABLE_SPECTRUM := 1
ENABLE_SWD := 1
ENABLE_TX1750 := 1
ENABLE_UART := 1

Expand Down Expand Up @@ -64,6 +65,9 @@ OBJS += app/generic.o
OBJS += app/main.o
OBJS += app/menu.o
OBJS += app/scanner.o
ifeq ($(ENABLE_SPECTRUM), 1)
OBJS += app/spectrum.o
endif
ifeq ($(ENABLE_UART),1)
OBJS += app/uart.o
endif
Expand Down Expand Up @@ -137,6 +141,9 @@ endif
ifeq ($(ENABLE_OVERLAY),1)
CFLAGS += -DENABLE_OVERLAY
endif
ifeq ($(ENABLE_SPECTRUM),1)
CFLAGS += -DENABLE_SPECTRUM
endif
ifeq ($(ENABLE_SWD),1)
CFLAGS += -DENABLE_SWD
endif
Expand Down
4 changes: 4 additions & 0 deletions app/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "app/generic.h"
#include "app/main.h"
#include "app/scanner.h"
#include "app/spectrum.h"
#include "audio.h"
#include "dtmf.h"
#include "frequencies.h"
Expand Down Expand Up @@ -227,6 +228,9 @@ static void MAIN_Key_DIGITS(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
}
gRequestSaveVFO = true;
gVfoConfigureMode = VFO_CONFIGURE_RELOAD;
#elif defined(ENABLE_SPECTRUM)
APP_RunSpectrum();
gRequestDisplayScreen = DISPLAY_MAIN;
#endif
break;

Expand Down
6 changes: 5 additions & 1 deletion app/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ int MENU_GetLimits(uint8_t Cursor, uint8_t *pMin, uint8_t *pMax)
break;
}
// Fallthrough
case MENU_ABR: case MENU_F_LOCK:
case MENU_ABR:
*pMin = 0;
*pMax = 60;
break;
case MENU_F_LOCK:
*pMin = 0;
*pMax = 5;
break;
Expand Down
Loading

0 comments on commit 9bd4504

Please sign in to comment.