Protect req_func_modality from too repentine changes
req_func_modality (see #59) is connected to a physical selector that may change value too quickly.
Add a timer in ioeventnotifier.c
to:
-
Ignore changes that do not last for at least T1, to be set in the configuration (default: 1 seconds)
-
Consider changes only after a proper timeout T2, to be set in the configuration (default: 10 seconds)
To better explain 2: when a value changes (i.e. new value last for T1), proper actions are immediately taken, but new future changes are considered again only after time T2.