mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-30 00:19:54 +00:00
Add this back in
This commit is contained in:
parent
25a19b49ad
commit
834c3c5cc2
@ -63,9 +63,8 @@
|
|||||||
SerialModule *serialModule;
|
SerialModule *serialModule;
|
||||||
SerialModuleRadio *serialModuleRadio;
|
SerialModuleRadio *serialModuleRadio;
|
||||||
|
|
||||||
|
|
||||||
#if defined(TTGO_T_ECHO) || defined(CANARYONE) || defined(MESHLINK) || defined(ELECROW_ThinkNode_M1) || \
|
#if defined(TTGO_T_ECHO) || defined(CANARYONE) || defined(MESHLINK) || defined(ELECROW_ThinkNode_M1) || \
|
||||||
defined(ELECROW_ThinkNode_M5) || defined(HELTEC_MESH_SOLAR)
|
defined(ELECROW_ThinkNode_M5) || defined(HELTEC_MESH_SOLAR) || defined(T_ECHO_LITE)
|
||||||
SerialModule::SerialModule() : StreamAPI(&Serial), concurrency::OSThread("Serial") {}
|
SerialModule::SerialModule() : StreamAPI(&Serial), concurrency::OSThread("Serial") {}
|
||||||
static Print *serialPrint = &Serial;
|
static Print *serialPrint = &Serial;
|
||||||
#elif defined(CONFIG_IDF_TARGET_ESP32C6)
|
#elif defined(CONFIG_IDF_TARGET_ESP32C6)
|
||||||
@ -249,10 +248,10 @@ int32_t SerialModule::runOnce()
|
|||||||
}
|
}
|
||||||
#if defined(HELTEC_MESH_SOLAR)
|
#if defined(HELTEC_MESH_SOLAR)
|
||||||
else if ((moduleConfig.serial.mode == meshtastic_ModuleConfig_SerialConfig_Serial_Mode_MS_CONFIG)) {
|
else if ((moduleConfig.serial.mode == meshtastic_ModuleConfig_SerialConfig_Serial_Mode_MS_CONFIG)) {
|
||||||
serialPayloadSize = Serial.readBytes(serialBytes, sizeof(serialBytes)-1);
|
serialPayloadSize = Serial.readBytes(serialBytes, sizeof(serialBytes) - 1);
|
||||||
//If the parsing fails, the following parsing will be performed.
|
// If the parsing fails, the following parsing will be performed.
|
||||||
if((serialPayloadSize > 0) && (meshSolarCmdHandle(serialBytes)!=0)) {
|
if ((serialPayloadSize > 0) && (meshSolarCmdHandle(serialBytes) != 0)) {
|
||||||
return runOncePart(serialBytes,serialPayloadSize);
|
return runOncePart(serialBytes, serialPayloadSize);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user