diff --git a/src/main/io/display.c b/src/main/io/display.c index 8052c4f..4e99eb6 100755 --- a/src/main/io/display.c +++ b/src/main/io/display.c @@ -75,6 +75,7 @@ extern positionVector_t targetPosition; extern positionVector_t trackerPosition; extern bool gotFix; extern bool gotTelemetry; +extern bool lostTelemetry; extern bool homeSet_BY_GPS; extern bool homeSet; extern bool homeReset; @@ -331,7 +332,7 @@ void updateTicker(void) static uint8_t tickerIndex = 0; i2c_OLED_set_xy(SCREEN_CHARACTER_COLUMN_COUNT - 1, 0); i2c_OLED_send_char(tickerCharacters[tickerIndex]); - if(gotTelemetry || PROTOCOL(TP_CALIBRATING_MAG)){ + if(!lostTelemetry || PROTOCOL(TP_CALIBRATING_MAG)){ tickerIndex++; tickerIndex = tickerIndex % TICKER_CHARACTER_COUNT; } diff --git a/src/main/io/serial.c b/src/main/io/serial.c index 65438a8..f7668a8 100755 --- a/src/main/io/serial.c +++ b/src/main/io/serial.c @@ -75,6 +75,8 @@ const serialPortIdentifier_e serialPortIdentifiers[SERIAL_PORT_COUNT] = { #endif }; +extern bool lostTelemetry; + int16_t magHold; static uint8_t serialPortCount; @@ -430,6 +432,7 @@ void evaluateOtherData(serialPort_t *serialPort, uint8_t receivedChar) else if(cliCharCounterDetected==3) { cliCharCounter=0; cliCharCounterDetected=0; + lostTelemetry = true; cliEnter(serialPort); } }