Refactor header files - includes should only declare, not define

This commit is contained in:
Sassa NF
2024-12-23 09:36:23 +00:00
parent cb6b93f9ff
commit ca6a61ff93
6 changed files with 132 additions and 73 deletions
+7 -1
View File
@@ -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() {};