Closed AndrasSzep closed 1 year ago
You have debug type printing in the code: Serial.print("Water Depth= "); Serial.println(pBD->WaterDepth,1);
Make them optional. See e.g., on NMEA2000.cpp
#if defined(NMEA2000_DEBUG)
# define N2kDbg(fmt, args...) DebugStream.print (fmt , ## args)
# define N2kDbgln(fmt, args...) DebugStream.println (fmt , ## args)
#else
# define N2kDbg(fmt, args...)
# define N2kDbgln(fmt, args...)
#endif
The code should be compatible with any board. Now you have fixed it to ESP32 by using esp_efuse_mac_get_default(chipid); Note also that that is not good way, since NMEA2000 unique ID is only 21 bits long. With bad luck you will generate double.
Before you send fixed pull, check that it compiles with at least Arduino Mega, Arduino DUE and Teensy.
I tried to compile this example and got several errors.
i have also (the same) errors:
additional NMEA0183 functions