Fixed start
This commit is contained in:
parent
2e1a17d60a
commit
1cdb3e476a
@ -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>();
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ class StartMenuItem : public MenuItem
|
|||||||
|
|
||||||
bool editable() { return false; }
|
bool editable() { return false; }
|
||||||
|
|
||||||
void execute();
|
void execute(ScreenManager* screenManager);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user