diff options
-rw-r--r-- | apps/main_clock/main.cpp | 9 | ||||
-rw-r--r-- | apps/main_clock/main.hpp | 1 |
2 files changed, 2 insertions, 8 deletions
diff --git a/apps/main_clock/main.cpp b/apps/main_clock/main.cpp index b4f4694..ab9be14 100644 --- a/apps/main_clock/main.cpp +++ b/apps/main_clock/main.cpp @@ -35,7 +35,7 @@ void app_main_clock::date_as_str(char *buf, uint buf_size, const datetime_t *t) DATETIME_DOWS[t->dotw]); }; -void app_main_clock::show_datetime(Api *app_api) { +BaseApp::AppReturnValues app_main_clock::render(Api *app_api) { char datetime_buf[256]; char *datetime_str = &datetime_buf[0]; datetime_t t; @@ -57,12 +57,7 @@ void app_main_clock::show_datetime(Api *app_api) { // date date_as_str(datetime_str, sizeof(datetime_buf), &t); - app_api->gui_footer_text((std::string)datetime_str); -} - -BaseApp::AppReturnValues app_main_clock::render(Api *app_api) { - app_api->gui_header_text("Test clock", 17); - show_datetime(app_api); + app_api->gui_footer_text(datetime_str); return AppReturnValues::OK; } diff --git a/apps/main_clock/main.hpp b/apps/main_clock/main.hpp index 1cd1e14..8163c22 100644 --- a/apps/main_clock/main.hpp +++ b/apps/main_clock/main.hpp @@ -9,7 +9,6 @@ class app_main_clock : public BaseApp { private: void time_as_str(char *buf, uint buf_size, const datetime_t *t); void date_as_str(char *buf, uint buf_size, const datetime_t *t); - void show_datetime(Api *app_api); AppAttributes app_attributes = {1, true}; public: |