mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-30 17:07:16 +02:00
Offline mode should not shown status on display. #111
This commit is contained in:
@ -874,6 +874,9 @@ static void appLedHandler(void) {
|
|||||||
static void appDispHandler(void) {
|
static void appDispHandler(void) {
|
||||||
if (ag->isOne()) {
|
if (ag->isOne()) {
|
||||||
AgStateMachineState state = AgStateMachineNormal;
|
AgStateMachineState state = AgStateMachineNormal;
|
||||||
|
|
||||||
|
/** Only show display status on online mode. */
|
||||||
|
if (configuration.isOfflineMode() == false) {
|
||||||
if (wifiConnector.isConnected() == false) {
|
if (wifiConnector.isConnected() == false) {
|
||||||
state = AgStateMachineWiFiLost;
|
state = AgStateMachineWiFiLost;
|
||||||
} else if (apiClient.isFetchConfigureFailed()) {
|
} else if (apiClient.isFetchConfigureFailed()) {
|
||||||
@ -881,7 +884,7 @@ static void appDispHandler(void) {
|
|||||||
} else if (apiClient.isPostToServerFailed()) {
|
} else if (apiClient.isPostToServerFailed()) {
|
||||||
state = AgStateMachineServerLost;
|
state = AgStateMachineServerLost;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
stateMachine.displayHandle(state);
|
stateMachine.displayHandle(state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user