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.
This commit is contained in:
Silvano Seva 2023-09-12 11:39:51 +02:00
parent 22afe0ecde
commit 0adab74255
1 changed files with 10 additions and 1 deletions

View File

@ -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)
//