Files
Upsilon/apps/on_boarding/logo_controller.cpp
Léa Saviot 69593bd0be [apps/on_boarding] Visually hide the LCD POST to the user
By initing the backlight after the test, not before.
2019-04-25 09:43:44 +02:00

31 lines
582 B
C++

#include "logo_controller.h"
#include "power_on_self_test.h"
#include <ion/led.h>
namespace OnBoarding {
LogoController::LogoController() :
ViewController(nullptr),
Timer(15),
m_logoView(),
m_previousLEDColor(KDColorBlack)
{
}
bool LogoController::fire() {
app()->dismissModalViewController();
return true;
}
void LogoController::viewWillAppear() {
m_previousLEDColor = PowerOnSelfTest::Perform();
ViewController::viewWillAppear();
}
void LogoController::viewDidDisappear() {
Ion::LED::setColor(m_previousLEDColor);
ViewController::viewDidDisappear();
}
}