[hardware test] Use a BankViewController

And add a SerialNumberController
This commit is contained in:
Romain Goyet
2018-05-04 15:53:53 +02:00
committed by Ecco
parent 69545b9cf9
commit 71f9ce3b67
16 changed files with 250 additions and 55 deletions

View File

@@ -23,9 +23,8 @@ View * BatteryTestController::view() {
bool BatteryTestController::handleEvent(Ion::Events::Event event) {
if (event == Ion::Events::OK) {
if (strcmp(m_view.batteryStateTextView()->text(), k_batteryOKText) == 0) {
ModalViewController * modal = (ModalViewController *)parentResponder();
App * a = (App *)app();
modal->displayModalViewController(a->USBController(), 0.0f, 0.0f);
// Handled in WizardViewController
return false;
}
}
updateBatteryState(Ion::Battery::voltage(), Ion::Battery::isCharging());