mirror of
https://github.com/Genaker/LoraSA.git
synced 2026-08-10 02:43:04 +02:00
Refactor header files - includes should only declare, not define
This commit is contained in:
+7
-1
@@ -5,6 +5,12 @@
|
||||
#include <HardwareSerial.h>
|
||||
#include <config.h>
|
||||
|
||||
#ifdef HELTEC
|
||||
#define SERIAL0 Serial
|
||||
#else
|
||||
#define SERIAL0 Serial0
|
||||
#endif
|
||||
|
||||
enum MessageType
|
||||
{
|
||||
WRAP = 0,
|
||||
@@ -69,7 +75,7 @@ struct Comms
|
||||
|
||||
struct NoopComms : Comms
|
||||
{
|
||||
NoopComms() : Comms("no-op", Serial0) {};
|
||||
NoopComms() : Comms("no-op", SERIAL0) {};
|
||||
|
||||
virtual bool send(Message &) { return true; };
|
||||
virtual void _onReceive() {};
|
||||
|
||||
Reference in New Issue
Block a user