Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the Mares Bluelink Pro communication
Sending the two byte command header and then waiting for the ack byte before sending the remainder of the command payload causes problems for some (but not all) users. Most likely the extra roundtrip time due to waiting for the ack byte results in a delay that sometimes exceeds a timeout in the dive computer while it's waiting for the payload data. On the other hand, sending both the command header and the payload data in one single packet is also not an option, because it causes problems for some models, like the Mares Matrix. See commit 59bfb0f for details. As an alternative solution, send the packet payload immediately after the header, without waiting for the ack byte. This eliminates the extra roundtrip time, while still sending out two separate bluetooth packets.
- Loading branch information