Device: Gracefully handle old firmware without ComponentVersions
parent
89047447a6
commit
1ba3eded09
|
|
@ -362,7 +362,7 @@ APIEvent::Type Device::attemptToBeginCommunication() {
|
|||
if(auto compVersions = com->getComponentVersionsSync())
|
||||
componentVersions = std::move(*compVersions);
|
||||
else
|
||||
return getCommunicationNotEstablishedError();
|
||||
report(APIEvent::Type::NotSupported, APIEvent::Severity::EventWarning); // outdated firmware
|
||||
}
|
||||
|
||||
return APIEvent::Type::NoErrorFound;
|
||||
|
|
|
|||
Loading…
Reference in New Issue