Add gauge

This commit is contained in:
Armel FAUVEAU
2024-12-23 05:02:56 +01:00
parent 2006ef9820
commit b4099fc1e7
5 changed files with 30 additions and 4 deletions

View File

@@ -53,10 +53,6 @@ center_line_t center_line = CENTER_LINE_NONE;
bool isMainOnlyInputDTMF = false;
static int16_t map(int16_t x, int16_t in_min, int16_t in_max, int16_t out_min, int16_t out_max) {
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}
static bool isMainOnly()
{
return (gEeprom.DUAL_WATCH == DUAL_WATCH_OFF) && (gEeprom.CROSS_BAND_RX_TX == CROSS_BAND_OFF);