mirror of
https://github.com/JoelBender/bacpypes
synced 2025-09-28 22:15:23 +08:00
fixes #431
This commit is contained in:
parent
6027b96685
commit
0631b548c9
|
@ -458,7 +458,7 @@ class PulseConverterCriteria(COVIncrementCriteria):
|
|||
|
||||
# check for a new period
|
||||
if new_value != 0:
|
||||
self.cov_period_task = RecurringFunctionTask(new_value * 1000, self.cov_period_x)
|
||||
self.cov_period_task = RecurringFunctionTask(new_value * 1000, self.send_cov_notifications)
|
||||
self.cov_period_task.install_task()
|
||||
if _debug: PulseConverterCriteria._debug(" - new task created and installed")
|
||||
|
||||
|
|
|
@ -456,7 +456,7 @@ class PulseConverterCriteria(COVIncrementCriteria):
|
|||
|
||||
# check for a new period
|
||||
if new_value != 0:
|
||||
self.cov_period_task = RecurringFunctionTask(new_value * 1000, self.cov_period_x)
|
||||
self.cov_period_task = RecurringFunctionTask(new_value * 1000, self.send_cov_notifications)
|
||||
self.cov_period_task.install_task()
|
||||
if _debug: PulseConverterCriteria._debug(" - new task created and installed")
|
||||
|
||||
|
|
|
@ -457,7 +457,7 @@ class PulseConverterCriteria(COVIncrementCriteria):
|
|||
|
||||
# check for a new period
|
||||
if new_value != 0:
|
||||
self.cov_period_task = RecurringFunctionTask(new_value * 1000, self.cov_period_x)
|
||||
self.cov_period_task = RecurringFunctionTask(new_value * 1000, self.send_cov_notifications)
|
||||
self.cov_period_task.install_task()
|
||||
if _debug: PulseConverterCriteria._debug(" - new task created and installed")
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user