mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Major improvements to the settings API
* Allow the raw structure to be manipulated from C and Legacy APIs * Structure is now split between what's on the device and what's on the client so changes will not be visible from read methods until apply() * Allow devices to connect which have slightly different firmware versions than the settings structure
This commit is contained in:
+1
-5
@@ -157,12 +157,8 @@ bool Device::open() {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool settingsNecessary = !settings->disabled;
|
||||
if(settingsNecessary) {
|
||||
if(!settings->disabled)
|
||||
settings->refresh();
|
||||
if(!settings->ok())
|
||||
return false;
|
||||
}
|
||||
|
||||
internalHandlerCallbackID = com->addMessageCallback(MessageCallback(MessageFilter(Network::Type::Internal), [this](std::shared_ptr<Message> message) {
|
||||
handleInternalMessage(message);
|
||||
|
||||
Reference in New Issue
Block a user