move #import statements to the top of the file

This commit is contained in:
Jeff Lehman 2022-11-23 19:25:29 -06:00
parent d3c44a1413
commit cd5154e77d

View File

@ -7,6 +7,9 @@
#ifndef __FDRS_FUNCTIONS_H__ #ifndef __FDRS_FUNCTIONS_H__
#define __FDRS_FUNCTIONS_H__ #define __FDRS_FUNCTIONS_H__
#include <fdrs_lora.h>
#include <fdrs_espnow.h>
#ifdef ESP8266 #ifdef ESP8266
#include <ESP8266WiFi.h> #include <ESP8266WiFi.h>
#include <espnow.h> #include <espnow.h>
@ -319,11 +322,6 @@ static uint16_t crc16_update(uint16_t crc, uint8_t a)
return crc; return crc;
} }
#include <fdrs_lora.h>
#include <fdrs_espnow.h>
void getSerial() { void getSerial() {
String incomingString; String incomingString;
if (UART_IF.available()){ if (UART_IF.available()){