Tigge / openant

ANT and ANT-FS Python Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Continuous Scan Mode - Issue

drkingpo opened this issue · comments

2 things here:

in Line 180 of ant.py we missed a underline
Instead of: and message.data[1] == 0x01

we should have: and message._data[1] == 0x01

:) that one of the simple things.

The other is.
I tested now a bit more with Open Scan mode and and it screws up regulary with Assertion Error.
I troubleshooted it down and realized that datas in Buffer screwed up.
The reason for screwing up are in '"# Send messages in queue, on indicated time slot", starting from line 200 in ant.py.
Finally in OpenRX Mode will be no (and never) a response to any Message, as Open Rx will only silend listen.

If I mask all the lines out (200-219) it works perfeclty.
So we need somthing like:
Line 201: if message._id == Message.ID.BROADCAST_DATA and OpenRxMode != True:

Right now I'm unsure how to integrate this.
Is there any simple idea? Sure there is! :) I'm not finding it right now.

Thanks for watching over this

ok, i thought to complicated... :)
just solved this with 2 small lines.

If fixed both Issues with PullRequest #56