Skip to content

Commit

Permalink
Fix building RFM69 gw on 64-bit OS (#1559)
Browse files Browse the repository at this point in the history
Rollback change done in #1551 (the issue was fixed in #1500)
  • Loading branch information
frepkovsky authored Jan 28, 2024
1 parent 0af7201 commit e298769
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hal/transport/RFM69/driver/new/RFM69_new.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,7 @@ LOCAL void RFM69_interruptHandling(void)
RFM69.currentPacket.header.packetLen - 1);

if (RFM69.currentPacket.header.version >= RFM69_MIN_PACKET_HEADER_VERSION) {
RFM69.currentPacket.payloadLen = min(static_cast<uint>
(RFM69.currentPacket.header.packetLen - (RFM69_HEADER_LEN - 1)),
RFM69.currentPacket.payloadLen = min(RFM69.currentPacket.header.packetLen - (RFM69_HEADER_LEN - 1),
RFM69_MAX_PACKET_LEN);
RFM69.ackReceived = RFM69_getACKReceived(RFM69.currentPacket.header.controlFlags);
RFM69.dataReceived = !RFM69.ackReceived;
Expand Down

0 comments on commit e298769

Please sign in to comment.