[Horus] Tx battery and audio volume added in the topbar

This commit is contained in:
Bertrand Songis
2016-03-22 22:43:00 +01:00
parent 43c70780b1
commit bff45a4b2a
14 changed files with 68 additions and 9 deletions
+5 -2
View File
@@ -273,11 +273,14 @@ void displayTopBar()
}
/* Audio volume */
TRACE("%d", requiredSpeakerVolume);
if (requiredSpeakerVolume == 0 || g_eeGeneral.beepMode == e_mode_quiet)
LCD_ICON(BAR_VOLUME_X, BAR_Y, ICON_SPEAKER0);
else if (requiredSpeakerVolume < 10)
else if (requiredSpeakerVolume <= 6)
LCD_ICON(BAR_VOLUME_X, BAR_Y, ICON_SPEAKER1);
else if (requiredSpeakerVolume < 20)
else if (requiredSpeakerVolume <= 12)
LCD_ICON(BAR_VOLUME_X, BAR_Y, ICON_SPEAKER2);
else if (requiredSpeakerVolume <= 18)
LCD_ICON(BAR_VOLUME_X, BAR_Y, ICON_SPEAKER2);
else
LCD_ICON(BAR_VOLUME_X, BAR_Y, ICON_SPEAKER3);