Fixed start

This commit is contained in:
Mark van Renswoude 2017-12-08 11:08:53 +01:00
parent 2e1a17d60a
commit 1cdb3e476a
3 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,7 @@
#include "start.h" #include "start.h"
#include "state.h" #include "state.h"
#include "display.h" #include "display.h"
#include "screen/countdown.h"
const char* StartMenuItem::getTitle() const char* StartMenuItem::getTitle()
{ {
@ -34,6 +35,7 @@ const char* StartMenuItem::getValue()
} }
void StartMenuItem::execute() void StartMenuItem::execute(ScreenManager* screenManager)
{ {
screenManager->show<CountdownScreen>();
} }

View File

@ -13,7 +13,7 @@ class StartMenuItem : public MenuItem
bool editable() { return false; } bool editable() { return false; }
void execute(); void execute(ScreenManager* screenManager);
}; };
#endif #endif

View File

@ -14,7 +14,7 @@ void CountdownScreen::printRemainingTime()
void CountdownScreen::onShow() void CountdownScreen::onShow()
{ {
LCDPrintLine(getDisplay(), 0, "Exposing..."); LCDPrintLineCentered(getDisplay(), 0, "Exposing...");
mLastDisplayed = GetExposureTimeRemaining(getCurrentTime()) / 1000; mLastDisplayed = GetExposureTimeRemaining(getCurrentTime()) / 1000;
printRemainingTime(); printRemainingTime();