Skip to content
Snippets Groups Projects
Commit 3d399474 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

initialise all properties at server startup with the value from the config file.

parent a07d2bb7
No related branches found
No related tags found
No related merge requests found
......@@ -84,6 +84,16 @@ public:
D_spectrum::set(eqAdr, data1, data2, eqFct);
sendToDevice();
}
/** Override the Doocs auto_init() method, which is called after initialising the value of
* the property from the config file. */
void auto_init (void) {
D_spectrum::auto_init();
// send the current value to the device
if (_processArray->isWriteable()){
sendToDevice();
}
}
};
......
......@@ -84,6 +84,17 @@ public:
_processScalar->write();
}
}
/** Override the Doocs auto_init() method, which is called after initialising the value of
* the property from the config file. */
void auto_init (void) {
DOOCS_T::auto_init();
// send the current value to the device
if (_processScalar->isWriteable()){
_processScalar->accessData(0) = DOOCS_T::value();
_processScalar->write();
}
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment