Skip to content
Snippets Groups Projects
Commit a1e6b1c7 authored by Alexandre MALFREYT's avatar Alexandre MALFREYT Committed by Florent LANGLOIS
Browse files

feat: write memorized value at init if writeMemorizedValuesAtInit is true...

feat: write memorized value at init if writeMemorizedValuesAtInit is true (instead of just set_channel)
parent 1085d888
No related branches found
No related tags found
2 merge requests!4develop -> main,!3EnableRamps and OutputMemorizedChannelsAtInit properties
......@@ -537,8 +537,10 @@ void SingleShotAO::init_device()
// Get and set memorized values for speed, initial and channel
applyMemorizedAttr(kSPEED, &SingleShotAOManager::set_speed);
applyMemorizedAttr(kINITIAL, &SingleShotAOManager::set_initial);
if (writeMemorizedValuesAtInit)
applyMemorizedAttr(kCHANNEL, &SingleShotAOManager::write_channel);
else
applyMemorizedAttr(kCHANNEL, &SingleShotAOManager::set_channel);
// TODO: add a property to call write_channel instead of set_channel (false by default)
}
//- GO for task
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment