Skip to content

Commit

Permalink
Display MCU firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
joel16 committed Feb 19, 2017
1 parent a4ca345 commit b993396
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,15 @@ int main(int argc, char *argv[])
printf("\x1b[34;1m*\x1b[0m Battery percentage: \x1b[34;1m%3d%%\x1b[0m (\x1b[34;1m%s\x1b[0m) \n\x1b[0m", batteryPercent, batteryStatus());

mcuGetBatteryVoltage(&batteryVolt);
printf("\x1b[34;1m*\x1b[0m Battery voltage: \x1b[34;1m%d\x1b[0m\n \n", batteryVolt);//,(Estimated: %0.1lf V) estimatedVolt);
printf("\x1b[34;1m*\x1b[0m Battery voltage: \x1b[34;1m%d\x1b[0m\n", batteryVolt);//,(Estimated: %0.1lf V) estimatedVolt);

u8 mcuFwMajor, mcuFwMinor;

GetMcuFwVerHigh(&mcuFwMajor);
GetMcuFwVerLow(&mcuFwMinor);

//if (CFG_UNITINFO == 0)
printf("\x1b[34;1m*\x1b[0m MCU firmware: \x1b[34;1m%u.%u\x1b[0m\n\n", (mcuFwMajor - 16), mcuFwMinor);

//=====================================================================//
//------------------------------Misc Info------------------------------//
Expand Down Expand Up @@ -427,7 +435,7 @@ int main(int argc, char *argv[])

printf("\x1b[19;0H"); //Move the cursor to the top left corner of the screen
mcuGetBatteryVoltage(&batteryVolt);
printf("\x1b[34;1m*\x1b[0m Battery voltage: \x1b[34;1m%d\x1b[0m\n \n", batteryVolt);//,(Estimated: %0.1lf V) estimatedVolt);
printf("\x1b[34;1m*\x1b[0m Battery voltage: \x1b[34;1m%d\x1b[0m\n", batteryVolt);//,(Estimated: %0.1lf V) estimatedVolt);
//=====================================================================//
//------------------------------Misc Info------------------------------//
//=====================================================================//
Expand Down

0 comments on commit b993396

Please sign in to comment.