Tigge / openant

ANT and ANT-FS Python Library
MIT License
174 stars 80 forks source link

Continuous Scan Mode - Issue #55

Closed drkingpo closed 3 years ago

drkingpo commented 3 years ago

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

drkingpo commented 3 years ago

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

If fixed both Issues with PullRequest #56