Adjust brightness while displaying progress bar

fixes #259
This commit is contained in:
d0k3 2017-11-06 01:50:35 +01:00
parent d413e71c01
commit 12739c2a91

View File

@ -12,6 +12,7 @@
#include "ui.h" #include "ui.h"
#include "rtc.h" #include "rtc.h"
#include "timer.h" #include "timer.h"
#include "power.h"
#include "hid.h" #include "hid.h"
#define STRBUF_SIZE 512 // maximum size of the string buffer #define STRBUF_SIZE 512 // maximum size of the string buffer
@ -751,5 +752,6 @@ bool ShowProgress(u64 current, u64 total, const char* opstr)
last_prog_width = prog_width; last_prog_width = prog_width;
CheckBrightness();
return !CheckButton(BUTTON_B); return !CheckButton(BUTTON_B);
} }