From 1cdb3e476aeee67a9a46a2250ce25bcb820fc2c6 Mon Sep 17 00:00:00 2001 From: Mark van Renswoude Date: Fri, 8 Dec 2017 11:08:53 +0100 Subject: [PATCH] Fixed start --- src/menu/start.cpp | 4 +++- src/menu/start.h | 2 +- src/screen/countdown.cpp | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/menu/start.cpp b/src/menu/start.cpp index d7893a9..a2b8e13 100644 --- a/src/menu/start.cpp +++ b/src/menu/start.cpp @@ -1,6 +1,7 @@ #include "start.h" #include "state.h" #include "display.h" +#include "screen/countdown.h" const char* StartMenuItem::getTitle() { @@ -34,6 +35,7 @@ const char* StartMenuItem::getValue() } -void StartMenuItem::execute() +void StartMenuItem::execute(ScreenManager* screenManager) { + screenManager->show(); } diff --git a/src/menu/start.h b/src/menu/start.h index 036aced..9fea889 100644 --- a/src/menu/start.h +++ b/src/menu/start.h @@ -13,7 +13,7 @@ class StartMenuItem : public MenuItem bool editable() { return false; } - void execute(); + void execute(ScreenManager* screenManager); }; #endif \ No newline at end of file diff --git a/src/screen/countdown.cpp b/src/screen/countdown.cpp index e51e834..5d8546b 100644 --- a/src/screen/countdown.cpp +++ b/src/screen/countdown.cpp @@ -14,7 +14,7 @@ void CountdownScreen::printRemainingTime() void CountdownScreen::onShow() { - LCDPrintLine(getDisplay(), 0, "Exposing..."); + LCDPrintLineCentered(getDisplay(), 0, "Exposing..."); mLastDisplayed = GetExposureTimeRemaining(getCurrentTime()) / 1000; printRemainingTime();