mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
Resolve a segfault when device did not ever receive reset status
This commit is contained in:
+1
-1
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user