Resolve a segfault when device did not ever receive reset status
parent
dfbc40f877
commit
5a5d626225
|
|
@ -184,7 +184,7 @@ bool Device::goOffline() {
|
||||||
if(!com->sendCommand(Command::EnableNetworkCommunication, false))
|
if(!com->sendCommand(Command::EnableNetworkCommunication, false))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
ledState = latestResetStatus->cmRunning ? LEDState::CoreMiniRunning : LEDState::Offline;
|
ledState = (latestResetStatus && latestResetStatus->cmRunning) ? LEDState::CoreMiniRunning : LEDState::Offline;
|
||||||
updateLEDState();
|
updateLEDState();
|
||||||
|
|
||||||
online = false;
|
online = false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue