Implemented channel hopping on TX frequencies
Every sent package changes the frequency
This commit is contained in:
parent
3789183ca3
commit
6c088a9898
@ -232,6 +232,9 @@ void HoymilesRadio::sendEsbPacket(CommandAbstract* cmd)
|
||||
openWritingPipe(s);
|
||||
_radio->setRetries(3, 15);
|
||||
|
||||
Serial.print(F("TX Channel: "));
|
||||
Serial.print(_radio->getChannel());
|
||||
Serial.print(F(" --> "));
|
||||
cmd->dumpDataPayload(Serial);
|
||||
_radio->write(cmd->getDataPayload(), cmd->getDataSize());
|
||||
|
||||
|
||||
@ -77,7 +77,7 @@ private:
|
||||
uint8_t _rxChLst[5] = { 3, 23, 40, 61, 75 };
|
||||
uint8_t _rxChIdx;
|
||||
|
||||
uint8_t _txChLst[1] = { 40 };
|
||||
uint8_t _txChLst[5] = { 3, 23, 40, 61, 75 };
|
||||
uint8_t _txChIdx;
|
||||
|
||||
volatile bool _packetReceived;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user