WIP converting some functions into methods.

This commit is contained in:
Anna Rose Wiggins 2025-07-04 10:14:04 -04:00
parent f6162d0f7b
commit c14ec074d1
4 changed files with 104 additions and 54 deletions

View file

@ -32,7 +32,11 @@ func timerWatcher(rule *mappingrules.ProportionalAxisMappingRule, channel chan<-
for {
event := rule.TimerEvent()
if event != nil {
channel <- ChannelEvent{Device: rule.Output.Device, Event: event, Type: ChannelEventTimer}
channel <- ChannelEvent{
Device: rule.Output.(*mappingrules.RuleTargetModeSelect).Device,
Event: event,
Type: ChannelEventTimer,
}
}
time.Sleep(TimerCheckIntervalMs * time.Millisecond)
}