mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +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))
|
||||
return false;
|
||||
|
||||
ledState = latestResetStatus->cmRunning ? LEDState::CoreMiniRunning : LEDState::Offline;
|
||||
ledState = (latestResetStatus && latestResetStatus->cmRunning) ? LEDState::CoreMiniRunning : LEDState::Offline;
|
||||
updateLEDState();
|
||||
|
||||
online = false;
|
||||
|
||||
Reference in New Issue
Block a user