|
|
|
@ -7,9 +7,6 @@
|
|
|
|
|
#ifndef __FDRS_FUNCTIONS_H__
|
|
|
|
|
#define __FDRS_FUNCTIONS_H__
|
|
|
|
|
|
|
|
|
|
#include <fdrs_lora.h>
|
|
|
|
|
#include <fdrs_espnow.h>
|
|
|
|
|
|
|
|
|
|
#ifdef ESP8266
|
|
|
|
|
#include <ESP8266WiFi.h>
|
|
|
|
|
#include <espnow.h>
|
|
|
|
@ -293,7 +290,6 @@ void transmitLoRa(uint16_t*, DataReading*, uint8_t);
|
|
|
|
|
void transmitLoRa(uint16_t*, SystemPacket*, uint8_t);
|
|
|
|
|
static uint16_t crc16_update(uint16_t, uint8_t);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// CRC16 from https://github.com/4-20ma/ModbusMaster/blob/3a05ff87677a9bdd8e027d6906dc05ca15ca8ade/src/util/crc16.h#L71
|
|
|
|
|
|
|
|
|
|
/** @ingroup util_crc16
|
|
|
|
@ -322,6 +318,10 @@ static uint16_t crc16_update(uint16_t crc, uint8_t a)
|
|
|
|
|
return crc;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#include <fdrs_lora.h>
|
|
|
|
|
#include <fdrs_espnow.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void getSerial() {
|
|
|
|
|
String incomingString;
|
|
|
|
|
if (UART_IF.available()){
|
|
|
|
|