Support ESPNow and improve documentation

This commit is contained in:
João Brázio 2025-09-07 21:39:54 +01:00
parent cb99eb4ae8
commit 5b9d11ac8f
No known key found for this signature in database
GPG key ID: 56A1490716A324DD
6 changed files with 510 additions and 59 deletions

View file

@ -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;