Improved Squelch MACRO Menu visual hinting

replace/668fd36f9495fa0d6c53578e9224de455c96f450
Niccolò Izzo 2021-02-02 11:11:36 +01:00
rodzic 1249a791cc
commit 6e28fa5b21
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -483,7 +483,7 @@ void gfx_drawSmeter(point_t start, uint16_t width, uint16_t height, float rssi,
float s_level = (127.0f + rssi) / 6.0f;
uint16_t rssi_width = (s_level < 0.0f) ? 0 : (s_level * (width - 1) / 11);
point_t rssi_pos = { start.x, start.y + 1 };
gfx_drawRect(rssi_pos, rssi_width, rssi_height, color, true);
gfx_drawRect(rssi_pos, rssi_width, rssi_height, white, true);
// Squelch bar
uint16_t squelch_height = height / 3 - 1;