mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[apps/on_boarding] Fix LED clash between on boarding and exam mode
This commit is contained in:
committed by
EmilieNumworks
parent
9f592a0bc4
commit
1b7f9cf7b4
@@ -1,5 +1,7 @@
|
||||
#include "logo_controller.h"
|
||||
#include "power_on_self_test.h"
|
||||
#include <apps/apps_container.h>
|
||||
#include <apps/global_preferences.h>
|
||||
#include <ion/led.h>
|
||||
|
||||
namespace OnBoarding {
|
||||
@@ -45,6 +47,11 @@ void LogoController::viewWillAppear() {
|
||||
void LogoController::viewDidDisappear() {
|
||||
if (m_didPerformTests) {
|
||||
Ion::LED::setColor(m_previousLEDColor);
|
||||
/* TODO: instead of setting again the exam mode, put the previous led color
|
||||
* AND BLINKING.*/
|
||||
if (GlobalPreferences::sharedGlobalPreferences()->examMode()) {
|
||||
AppsContainer::sharedAppsContainer()->activateExamMode();
|
||||
}
|
||||
}
|
||||
ViewController::viewDidDisappear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user