Skip to content

Commit 2f5e96e

Browse files
committed
My bad, 'process' does take a channel, though it's not used.
1 parent 87154a1 commit 2f5e96e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/ant/plus/plus.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def wrapDifference(self, current, previous, max):
106106
difference = current - previous
107107
return difference
108108

109-
def process(self, msg):
109+
def process(self, msg, channel):
110110
"""Handles incoming channel messages
111111
Converts messages to ANT+ device specific data.
112112
"""

tests/ant/plus/fakes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ def set_running(self, running):
8686
running = property(lambda self: self._running,
8787
set_running)
8888

89-
def reset(self):
89+
def reset(self, wait=True):
9090
pass
9191

92-
def start(self):
92+
def start(self, wait=True):
9393
self.running = True
9494

9595
def stop(self):

tests/ant/plus/test_heartrate.py

+1
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ def callback(device, id):
198198

199199
hr.channel.process(ChannelIDMessage(0, 23358, 120, 1))
200200

201+
self.assertIsNotNone(channelId)
201202
self.assertEqual(23358, channelId.deviceNumber)
202203
self.assertEqual(120, channelId.deviceType)
203204
self.assertEqual(1, channelId.transmissionType)

0 commit comments

Comments
 (0)