mirror of
https://github.com/meshtastic/firmware.git
synced 2026-09-29 01:36:26 -04:00
refactor classes to accomodate SerialModule
This commit is contained in:
1 parent
1a3f2a8ab5
commit
a289406863
9 files changed
+19
-13
No files matched your search
@@ -197,7 +197,7 @@ int32_t SerialModule::runOnce()
|
||||
} else {
|
||||
|
||||
if (moduleConfig.serial.mode == ModuleConfig_SerialConfig_Serial_Mode_PROTO) {
|
||||
return StreamAPI::runOnce();
|
||||
return runOncePart();
|
||||
} else if (moduleConfig.serial.mode == ModuleConfig_SerialConfig_Serial_Mode_NMEA) {
|
||||
// in NMEA mode send out GGA every 2 seconds, Don't read from Port
|
||||
if (millis() - lastNmeaTime > 2000) {
|
||||
|
||||
Reference in new issue
Block a user