[RF69] Remove hacky padding byte (#1552)

pull/1557/head
jgromes 2025-07-05 20:55:32 +02:00
rodzic d0db02e335
commit 6bc37af47f
1 zmienionych plików z 0 dodań i 6 usunięć

Wyświetl plik

@ -421,12 +421,6 @@ int16_t RF69::startTransmit(const uint8_t* data, size_t len, uint8_t addr) {
}
this->mod->SPIwriteRegisterBurst(RADIOLIB_RF69_REG_FIFO, const_cast<uint8_t*>(data), packetLen);
// this is a hack, but it seems than in Stream mode, Rx FIFO level is getting triggered 1 byte before it should
// just add a padding byte that can be dropped without consequence
if(len > RADIOLIB_RF69_MAX_PACKET_LENGTH) {
this->mod->SPIwriteRegister(RADIOLIB_RF69_REG_FIFO, '/');
}
// enable +20 dBm operation
if(this->power > 17) {
state = this->mod->SPIsetRegValue(RADIOLIB_RF69_REG_OCP, RADIOLIB_RF69_OCP_OFF | 0x0F);