Skip to content

Commit 48b7430

Browse files
committed
WPL try 2
1 parent 6385e82 commit 48b7430

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Multiprotocol/WPL_nrf24l01.ino

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ static void __attribute__((unused)) WPL_send_packet()
5353
| GET_FLAG(CH6_SW, 0x04) // Throttle rate 100%=high
5454
| GET_FLAG(CH7_SW, 0x02); // Steering rate 100%=high
5555
}
56-
56+
uint8_t sum = 0x66;
57+
for(uint8_t i=0;i<WPL_PAYLOAD_SIZE-1;i++)
58+
sum += packet[i];
59+
packet[WPL_PAYLOAD_SIZE-1] = sum;
5760
// Send
5861
XN297_SetPower();
5962
XN297_SetTxRxMode(TX_EN);

0 commit comments

Comments
 (0)