mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[hardware test] Use a BankViewController
And add a SerialNumberController
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user