Bsongis/r9m modes (#6577)

R9M / R9M Lite / R9M Lite PRO modes
This commit is contained in:
Bertrand Songis
2019-07-17 23:15:31 +02:00
committed by GitHub
parent cd10f4cde5
commit 99c8b4576b
16 changed files with 299 additions and 296 deletions
+2 -1
View File
@@ -22,6 +22,7 @@
#define _PULSES_PXX1_H_
#include "pxx.h"
#include "crc.h"
struct HeartbeatCapture {
uint32_t timestamp;
@@ -40,7 +41,7 @@ class Pxx1CrcMixin {
void addToCrc(uint8_t byte)
{
crc = (crc << 8) ^ (CRCTable[((crc >> 8) ^ byte) & 0xFF]);
crc = (crc << 8) ^ (crc16tab_1189[((crc >> 8) ^ byte) & 0xFF]);
}
uint16_t crc;