WIP converting some functions into methods.
This commit is contained in:
parent
f6162d0f7b
commit
c14ec074d1
4 changed files with 104 additions and 54 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue