Add Squelch Level

This commit is contained in:
Armel FAUVEAU
2024-02-07 00:31:35 +01:00
parent b0e4a05d78
commit fc4b82e1d5

View File

@@ -932,8 +932,8 @@ void UI_DisplayMain(void)
#endif #endif
#ifdef ENABLE_FEAT_F4HWN #ifdef ENABLE_FEAT_F4HWN
sprintf(String, "SQL %d", gEeprom.SQUELCH_LEVEL); // sprintf(String, "SQL %d", gEeprom.SQUELCH_LEVEL);
UI_PrintStringSmallNormal(String, LCD_WIDTH + 78, 0, line + 1); // UI_PrintStringSmallNormal(String, LCD_WIDTH + 78, 0, line + 1);
#endif #endif
} }
@@ -1050,6 +1050,21 @@ void UI_DisplayMain(void)
} }
} }
#ifdef ENABLE_FEAT_F4HWN
//if(center_line == CENTER_LINE_NONE)
{
sprintf(String, "SQL %d", gEeprom.SQUELCH_LEVEL);
if ((gSetting_set_dual_watch_session != DUAL_WATCH_OFF) + (gSetting_set_cross_band_RX_TX_session != CROSS_BAND_OFF) * 2 == 0)
{
UI_PrintStringSmallNormal(String, 90, 0, 2);
}
else
{
UI_PrintStringSmallNormal(String, 90, 0, 2);
}
}
#endif
ST7565_BlitFullScreen(); ST7565_BlitFullScreen();
} }