1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-13 05:53:06 +01:00

cleanup unused code, make fallback_serial working again

This commit is contained in:
andreas
2023-08-30 20:20:28 +02:00
parent dc2f353893
commit 17615adca5
5 changed files with 8 additions and 16 deletions

View File

@@ -12,8 +12,9 @@
#define N2K_CHANNEL_ID 0
#define USB_CHANNEL_ID 1
#define SERIAL1_CHANNEL_ID 2
#define TCP_CLIENT_CHANNEL_ID 3
#define MIN_TCP_CHANNEL_ID 4
#define SERIAL2_CHANNEL_ID 3
#define TCP_CLIENT_CHANNEL_ID 4
#define MIN_TCP_CHANNEL_ID 5
#define MIN_USER_TASK 200
class GwSocketServer;

View File

@@ -22,6 +22,7 @@
#define GWLED_PIN GPIO_NUM_27
//brightness 0...255
#define GWLED_BRIGHTNESS 64
#define USBSerial Serial
void exampleTask(GwApi *param);
void exampleInit(GwApi *param);

View File

@@ -7,7 +7,6 @@
board = m5stack-atom
lib_deps =
${env.lib_deps}
own_lib
build_flags=
-D BOARD_TEST
${env.build_flags}

View File

@@ -1,10 +1,11 @@
#include "GwLog.h"
#include "GwHardware.h"
class DefaultLogWriter: public GwLogWriter{
public:
virtual ~DefaultLogWriter(){};
virtual void write(const char *data){
Serial.print(data);
USBSerial.print(data);
}
};