From 82acc0cf8b56d7c5149a1178ec10ecaad4358fd0 Mon Sep 17 00:00:00 2001 From: Egor Shitikov Date: Wed, 14 Aug 2024 18:19:02 -0700 Subject: [PATCH] osd side bar const --- src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index ec878e5..456892e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -30,6 +30,7 @@ #ifdef OSD_ENABLED #include "DFRobot_OSD.h" #define MAX_POWER_LEVELS 33 +#define OSD_SIDE_BAR true static const uint16_t power_level[MAX_POWER_LEVELS] = { 0x10E, // 0 @@ -605,13 +606,14 @@ void loop(void) // Going to the next OSD step if (x % osd_steps == 0 && col < 30) { - // OSD SIDE BAR - if (true) + // OSD SIDE BAR with frequency log +#ifdef OSD_SIDE_BAR { osd.displayString(col, 30 - 7, String(FREQ_BEGIN + (col * osd_mhz_in_bin)) + ":" + String(max_bins_array[col])); } +#endif // Test with Random Result... // max_bins_array[s] = rand() % 32; #ifdef METHOD_RSSI