You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bus->voltageUpdated().addAction([&](){
if (abs(bus->voltage()(0)) < threshold)
appliance->setOn(false);});
With changes that occurred some time ago, this becomes harder. For example, the action currently needs an owner, or it will go out of scope and deregister from its event.
The text was updated successfully, but these errors were encountered:
We used to be able to do stuff like this:
With changes that occurred some time ago, this becomes harder. For example, the action currently needs an owner, or it will go out of scope and deregister from its event.
The text was updated successfully, but these errors were encountered: