Use rolling codes from Packet when filling buffer

This commit is contained in:
2024-01-02 21:09:07 +11:00
parent d1adfa54ef
commit f94715c4fc
3 changed files with 6 additions and 17 deletions

View File

@@ -4,7 +4,7 @@
RFPowerView::RFPowerView(uint8_t cePin, uint8_t csPin, uint8_t irqPin, uint16_t rfID) :
radio(cePin, csPin),
packetReceiver(&radio),
bufferFiller(0x3D, 0x96, 0x05),
bufferFiller(0x05),
irqPin(irqPin),
rfID{static_cast<uint8_t>(rfID & 0xFF), static_cast<uint8_t>(rfID >> 8)},
packetCallback(nullptr) {}