Skip to content

Commit

Permalink
Add proper broadcast version check to support Crazyradio 2.0 broadcas…
Browse files Browse the repository at this point in the history
…ting

Tested with ./example_broadcast
  • Loading branch information
whoenig committed Jul 27, 2023
1 parent 9a6ce54 commit 616ec0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CrazyradioThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ void CrazyradioThread::run()
{
Crazyradio radio(dev_);
const auto version = radio.version();
bool supports_broadcasts = version.second >= 0x55;
bool supports_broadcasts =
(version.first == 0x99 && version.second >= 0x55) // Crazyradio PA with latest official firmware
|| (version.first == 3 && version.second >= 2); // Crazyradio 2.0;

const uint8_t enableSafelink[] = {0xFF, 0x05, 1};
const uint8_t ping[] = {0xFF};
Expand Down

0 comments on commit 616ec0b

Please sign in to comment.