Fixes #3683: Display trainer icon in master mode when IS_TRAINER_INPUT_VALID() is true, don't rely on trainer jack connected detection. (#4233)

This commit is contained in:
Damjan Adamic
2017-01-15 10:01:30 +01:00
committed by Bertrand Songis
parent 2e12b6401f
commit 985dff2af7
+2 -2
View File
@@ -260,16 +260,16 @@ void displayTopBar()
x -= 12; x -= 12;
} }
if (TRAINER_CONNECTED()) {
if (SLAVE_MODE()) { if (SLAVE_MODE()) {
if (TRAINER_CONNECTED()) {
LCD_NOTIF_ICON(x, ICON_TRAINEE); LCD_NOTIF_ICON(x, ICON_TRAINEE);
x -= 12; x -= 12;
} }
}
else if (IS_TRAINER_INPUT_VALID()) { else if (IS_TRAINER_INPUT_VALID()) {
LCD_NOTIF_ICON(x, ICON_TRAINER); LCD_NOTIF_ICON(x, ICON_TRAINER);
x -= 12; x -= 12;
} }
}
if (isFunctionActive(FUNCTION_LOGS)) { if (isFunctionActive(FUNCTION_LOGS)) {
LCD_NOTIF_ICON(x, ICON_LOGS); LCD_NOTIF_ICON(x, ICON_LOGS);