Skip to content

Commit 3be2516

Browse files
authored
Update RFM69 to MYS coding standards (#694)
1 parent 4753c1e commit 3be2516

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/RFM69/RFM69.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,8 @@ void RFM69::sendFrame(uint8_t toAddress, const void* buffer, uint8_t bufferSize,
345345
setMode(RF69_MODE_TX);
346346
uint32_t txStart = millis();
347347
while (hwDigitalRead(_interruptPin) == 0 &&
348-
millis() - txStart < RF69_TX_LIMIT_MS) {} // wait for DIO0 to turn HIGH signalling transmission finish
348+
millis() - txStart <
349+
RF69_TX_LIMIT_MS) {} // wait for DIO0 to turn HIGH signalling transmission finish
349350
//while (readReg(REG_IRQFLAGS2) & RF_IRQFLAGS2_PACKETSENT == 0x00); // wait for ModeReady
350351
setMode(RF69_MODE_STANDBY);
351352
}
@@ -364,7 +365,8 @@ void RFM69::interruptHandler()
364365
PAYLOADLEN = PAYLOADLEN > 66 ? 66 : PAYLOADLEN; // precaution
365366
TARGETID = SPI.transfer(0);
366367
if(!(_promiscuousMode || TARGETID == _address ||
367-
TARGETID == RF69_BROADCAST_ADDR) // match this node's address, or broadcast address or anything in promiscuous mode
368+
TARGETID ==
369+
RF69_BROADCAST_ADDR) // match this node's address, or broadcast address or anything in promiscuous mode
368370
|| PAYLOADLEN <
369371
3) { // address situation could receive packets that are malformed and don't fit this libraries extra fields
370372
PAYLOADLEN = 0;

0 commit comments

Comments
 (0)