Skip to content

Commit

Permalink
Bump version to 5.0 and add battery percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
joel16 committed Sep 23, 2016
1 parent 827f177 commit ad6ab49
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,11 @@ int main(int argc, char *argv[])
u8* serial = secureInfo + 0x102;
printf("\x1b[31m*\x1b[0m Serial: %.15s\n\n", (char*)serial);*/


u8 batteryPercent;
PTMU_GetBatteryLevel(&batteryPercent);
int batt = (u32)batteryPercent * 20;
printf("\x1b[34m*\x1b[0m Battery Status: %s\n", batteryStatus());
printf("\x1b[34m*\x1b[0m Battery Percentage: %d%%\n\n", batt);

u8 batteryPercent;
mcuGetBatteryLevel(&batteryPercent);
printf("\x1b[34m*\x1b[0m Battery Percentage: %d%%\n", batteryPercent);

u32 nnidNum = 0xFFFFFFFF;

Expand Down Expand Up @@ -310,6 +309,7 @@ int main(int argc, char *argv[])
aptExit();
psExit();
amExit();
mcuExit();
ptmuExit();
sdmcExit();
fsExit();
Expand Down

0 comments on commit ad6ab49

Please sign in to comment.