mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Settings: The device can report when defaults were applied
This commit is contained in:
@@ -125,8 +125,10 @@ bool Communication::getSettingsSync(std::vector<uint8_t>& data, std::chrono::mil
|
||||
return false;
|
||||
}
|
||||
|
||||
if(gsmsg->response != ReadSettingsMessage::Response::OK) {
|
||||
report(APIEvent::Type::Unknown, APIEvent::Severity::Error);
|
||||
if(gsmsg->response == ReadSettingsMessage::Response::OKDefaultsUsed) {
|
||||
report(APIEvent::Type::SettingsDefaultsUsed, APIEvent::Severity::EventInfo);
|
||||
} else if(gsmsg->response != ReadSettingsMessage::Response::OK) {
|
||||
report(APIEvent::Type::SettingsReadError, APIEvent::Severity::Error);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user