ElektraInitiative / opensesame

3 stars 5 forks source link

Sensors implement Alarm to set global state in Elektra #103

Closed fel115 closed 1 year ago

fel115 commented 1 year ago

https://github.com/ElektraInitiative/opensesame/blob/4c7aed4014e5d1e578e8e03371dde53205ef6d01/src/sensors.rs#L276-L282

In the Alarm path of the Sensors, the global Elektra state should be set and then the system signal USER2 triggers the Alarm Clock.

markus2330 commented 1 year ago

Why not simply do as it was before with the kdb set?

fel115 commented 1 year ago

It was commented out before. https://github.com/ElektraInitiative/opensesame/blob/32e44e7246be86a5191b0107fd6486fee373d3f5/src/main.rs#L305-L310

markus2330 commented 1 year ago

ok, let us do #117 instead