We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6385e82 commit 48b7430Copy full SHA for 48b7430
Multiprotocol/WPL_nrf24l01.ino
@@ -53,7 +53,10 @@ static void __attribute__((unused)) WPL_send_packet()
53
| GET_FLAG(CH6_SW, 0x04) // Throttle rate 100%=high
54
| GET_FLAG(CH7_SW, 0x02); // Steering rate 100%=high
55
}
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;
60
// Send
61
XN297_SetPower();
62
XN297_SetTxRxMode(TX_EN);
0 commit comments