M17: workaround to avoid UI glitches when a new dst callsign is set.

When a new dst callsign is set, the rtx configuration data structure is
updated and this may trigger false setting of the lsfOk variable to true,
causing the M17 info screen to appear for a very small, but noticeable,
amount of time.
pull/187/head
Silvano Seva 2023-09-12 11:39:51 +02:00
rodzic 22afe0ecde
commit 0adab74255
1 zmienionych plików z 10 dodań i 1 usunięć

Wyświetl plik

@ -75,7 +75,16 @@ void OpMode_M17::disable()
void OpMode_M17::update(rtxStatus_t *const status, const bool newCfg)
{
(void) newCfg;
//
// FIXME: workaround to avoid UI glitches when a new dst callsign is set.
//
// When a new dst callsign is set, the rtx configuration data structure is
// updated and this may trigger false setting of the lsfOk variable to true,
// causing the M17 info screen to appear for a very small, but noticeable,
// amount of time.
//
if(newCfg)
status->lsfOk = false;
#if defined(PLATFORM_MD3x0) || defined(PLATFORM_MDUV3x0)
//