mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Support ESPNow and improve documentation
This commit is contained in:
parent
cb99eb4ae8
commit
5b9d11ac8f
6 changed files with 510 additions and 59 deletions
|
|
@ -4,8 +4,9 @@
|
|||
|
||||
#ifdef WITH_RS232_BRIDGE
|
||||
|
||||
// Fletcher-16
|
||||
// https://en.wikipedia.org/wiki/Fletcher%27s_checksum
|
||||
// Static Fletcher-16 checksum calculation
|
||||
// Based on: https://en.wikipedia.org/wiki/Fletcher%27s_checksum
|
||||
// Used to verify data integrity of received packets
|
||||
inline static uint16_t fletcher16(const uint8_t *bytes, const size_t len) {
|
||||
uint8_t sum1 = 0, sum2 = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue