summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/app
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/eos/app')
-rw-r--r--fw/fe310/eos/app/app_root.c4
-rw-r--r--fw/fe310/eos/app/app_root.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/fw/fe310/eos/app/app_root.c b/fw/fe310/eos/app/app_root.c
index 1b46ea8..fac9548 100644
--- a/fw/fe310/eos/app/app_root.c
+++ b/fw/fe310/eos/app/app_root.c
@@ -39,12 +39,12 @@ void app_root_refresh(void) {
eve_spi_stop();
}
-void app_root_init(eve_view_constructor_t home_page) {
+void app_root_init(eve_view_constructor_t home_page, int b) {
EVERect g;
eve_spi_start();
- eve_brightness(0x40);
+ if (b >= 0) eve_brightness(b);
eve_font_init(&font, APP_FONT_HANDLE);
diff --git a/fw/fe310/eos/app/app_root.h b/fw/fe310/eos/app/app_root.h
index 7a44565..b085344 100644
--- a/fw/fe310/eos/app/app_root.h
+++ b/fw/fe310/eos/app/app_root.h
@@ -9,4 +9,4 @@
EVEWindowRoot *app_root(void);
void app_root_refresh(void);
-void app_root_init(eve_view_constructor_t home_page);
+void app_root_init(eve_view_constructor_t home_page, int b);