get sensor and NMEA data from indicator. Will test tomorrow, don't merge yet.

This commit is contained in:
Thomas Göttgens
2025-03-04 01:53:18 +01:00
parent 6715662281
commit 3c30821337
13 changed files with 410 additions and 337 deletions

View File

@@ -22,6 +22,10 @@
#include "error.h"
#include "power.h"
#ifdef SENSECAP_INDICATOR // on the indicator run the additional serial port for the RP2040
#include "IndicatorSerial.h"
#endif
#if !MESHTASTIC_EXCLUDE_I2C
#include "detect/ScanI2CTwoWire.h"
#include <Wire.h>
@@ -692,6 +696,11 @@ void setup()
buttonThread = new ButtonThread();
#endif
// If we have an indicator, start process to service secondary port
#ifdef SENSECAP_INDICATOR
sensecapIndicator.begin(Serial2);
#endif
// only play start melody when role is not tracker or sensor
if (config.power.is_power_saving == true &&
IS_ONE_OF(config.device.role, meshtastic_Config_DeviceConfig_Role_TRACKER,