Skip to content

Commit

Permalink
Sticker reworked
Browse files Browse the repository at this point in the history
  • Loading branch information
raul-ortega committed May 3, 2017
1 parent d33a44f commit ac6eb08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/io/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down
3 changes: 3 additions & 0 deletions src/main/io/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ const serialPortIdentifier_e serialPortIdentifiers[SERIAL_PORT_COUNT] = {
#endif
};

extern bool lostTelemetry;

int16_t magHold;

static uint8_t serialPortCount;
Expand Down Expand Up @@ -430,6 +432,7 @@ void evaluateOtherData(serialPort_t *serialPort, uint8_t receivedChar)
else if(cliCharCounterDetected==3) {
cliCharCounter=0;
cliCharCounterDetected=0;
lostTelemetry = true;
cliEnter(serialPort);
}
}
Expand Down

0 comments on commit ac6eb08

Please sign in to comment.