Skip to content

Commit

Permalink
Display brightness value instead of percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
joel16 committed Dec 13, 2017
1 parent a8e4e2e commit a275861
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/hardware.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ char * getBrightness(u32 screen)
gspLcdExit();
}

snprintf(level, 5, "%d%%", (int)brightness);
snprintf(level, 4, "%d", (int)brightness);

return level;
}
2 changes: 1 addition & 1 deletion source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ int main(int argc, char *argv[])
printf("\x1b[36;1m*\x1b[0m CTR Size: \x1b[36;1m%s\x1b[0m / \x1b[36;1m%s\x1b[0m \n", ctrFreeSize, ctrTotalSize);

printf("\x1b[26;0H");
printf("\x1b[36;1m*\x1b[0m Brightness: \x1b[36;1m%s\x1b[0m \n", getBrightness(1));
printf("\x1b[36;1m*\x1b[0m Brightness level: \x1b[36;1m%s\x1b[0m \n", getBrightness(1));

printf("\x1b[27;0H");
wifiPercent = (osGetWifiStrength() * 33.3333333333);
Expand Down

0 comments on commit a275861

Please sign in to comment.