1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 14:55:21 +03:00

fixed current value in statistics and some minor fixes

This commit is contained in:
Marcin Baliniak 2016-09-24 22:31:24 +02:00
parent bec109d366
commit d9774666da

View file

@ -298,7 +298,7 @@ static const char * const ledColorNames[] = {
" LIGHT BLUE", " LIGHT BLUE",
" BLUE", " BLUE",
"DARK VIOLET", "DARK VIOLET",
" MAGNETA", " MAGENTA",
" DEEP PINK", " DEEP PINK",
}; };
@ -346,7 +346,7 @@ OSD_Entry MenuLedstrip[]=
#if defined(VTX) || defined(USE_RTC6705) #if defined(VTX) || defined(USE_RTC6705)
static const char * const vtxBandNames[] = { static const char * const vtxBandNames[] = {
"BOACAM A", "BOSCAM A",
"BOSCAM B", "BOSCAM B",
"BOSCAM E", "BOSCAM E",
"FATSHARK", "FATSHARK",
@ -1453,7 +1453,7 @@ void OSD_Stats(void)
if (feature(FEATURE_CURRENT_METER)) if (feature(FEATURE_CURRENT_METER))
{ {
max7456_write(2, top, "MAX CURRENT :"); max7456_write(2, top, "MAX CURRENT :");
itoa(stats.max_current/10, buff, 10); itoa(stats.max_current, buff, 10);
strcat(buff, "A"); strcat(buff, "A");
max7456_write(22, top++, buff); max7456_write(22, top++, buff);
@ -1519,7 +1519,7 @@ void OSD_Update(uint8_t guiKey)
if (ARMING_FLAG(ARMED)) if (ARMING_FLAG(ARMED))
OSD_ArmMotors(); //reset statistic etc OSD_ArmMotors(); //reset statistic etc
else else
OSD_Stats(); //schow statistic OSD_Stats(); //show statistic
arm_state = ARMING_FLAG(ARMED); arm_state = ARMING_FLAG(ARMED);
} }