mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-04 14:47:37 +03:00
remove skip and back
This commit is contained in:
parent
1c1adaf078
commit
d4c8e13698
@ -28,13 +28,6 @@ void AutoConnectingActivity::onExit() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void AutoConnectingActivity::loop() {
|
void AutoConnectingActivity::loop() {
|
||||||
if (mappedInput.wasPressed(MappedInputManager::Button::Back)) {
|
|
||||||
WiFi.disconnect();
|
|
||||||
on_failure();
|
|
||||||
} else if (mappedInput.wasPressed(MappedInputManager::Button::Confirm)) { // Skip
|
|
||||||
WiFi.disconnect();
|
|
||||||
on_failure();
|
|
||||||
}
|
|
||||||
checkConnectionStatus();
|
checkConnectionStatus();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -84,8 +77,5 @@ void AutoConnectingActivity::render() const {
|
|||||||
ssidInfo.replace(22, ssidInfo.length() - 22, "...");
|
ssidInfo.replace(22, ssidInfo.length() - 22, "...");
|
||||||
}
|
}
|
||||||
renderer.drawCenteredText(UI_10_FONT_ID, top, ssidInfo.c_str());
|
renderer.drawCenteredText(UI_10_FONT_ID, top, ssidInfo.c_str());
|
||||||
|
|
||||||
const auto labels = mappedInput.mapLabels("« Back", "Skip", "", "");
|
|
||||||
renderer.drawButtonHints(UI_10_FONT_ID, labels.btn1, labels.btn2, labels.btn3, labels.btn4);
|
|
||||||
renderer.displayBuffer();
|
renderer.displayBuffer();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user