mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-08 13:10:29 +00:00
Move #import statements from fdrs_functions back to the middle of the file
This commit is contained in:
parent
e090cdc22a
commit
7b300a4243
@ -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()){
|
||||
|
Loading…
Reference in New Issue
Block a user