mirror of
https://github.com/preble/libpinproc
synced 2026-02-24 18:25:23 +01:00
Merge branch 'master' of git@github.com:preble/P-ROC
This commit is contained in:
@@ -53,6 +53,11 @@ void ConfigureSwitches(PRHandle proc, YAML::Node& yamlDoc)
|
|||||||
{
|
{
|
||||||
switches[i].state = kPREventTypeInvalid;
|
switches[i].state = kPREventTypeInvalid;
|
||||||
switches[i].lastEventTime = 0;
|
switches[i].lastEventTime = 0;
|
||||||
|
|
||||||
|
PRSwitchRule sw;
|
||||||
|
sw.notifyHost = true;
|
||||||
|
PRSwitchUpdateRule(proc, i, kPREventTypeSwitchClosedDebounced, &sw, NULL, 0);
|
||||||
|
PRSwitchUpdateRule(proc, i, kPREventTypeSwitchOpenDebounced, &sw, NULL, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user