sforkowany z mirror/meshtastic-firmware
Merge pull request #1703 from meshtastic/ESPIDF-Rollup
Small fixes for ESP Serial Init and Power FSM debug garble.raytac-diy
commit
e27a507a28
|
@ -240,7 +240,7 @@ void PowerFSM_setup()
|
||||||
bool isRouter = (config.device.role == Config_DeviceConfig_Role_ROUTER ? 1 : 0);
|
bool isRouter = (config.device.role == Config_DeviceConfig_Role_ROUTER ? 1 : 0);
|
||||||
bool hasPower = isPowered();
|
bool hasPower = isPowered();
|
||||||
|
|
||||||
DEBUG_MSG("PowerFSM init, USB power=%d\n", hasPower);
|
DEBUG_MSG("PowerFSM init, USB power=%d\n", hasPower ? 1 : 0);
|
||||||
powerFSM.add_timed_transition(&stateBOOT, hasPower ? &statePOWER : &stateON, 3 * 1000, NULL, "boot timeout");
|
powerFSM.add_timed_transition(&stateBOOT, hasPower ? &statePOWER : &stateON, 3 * 1000, NULL, "boot timeout");
|
||||||
|
|
||||||
// wake timer expired or a packet arrived
|
// wake timer expired or a packet arrived
|
||||||
|
|
|
@ -145,7 +145,7 @@ bool GPS::setupGPS()
|
||||||
if (_serial_gps && !didSerialInit) {
|
if (_serial_gps && !didSerialInit) {
|
||||||
didSerialInit = true;
|
didSerialInit = true;
|
||||||
|
|
||||||
#if CONFIG_IDF_TARGET_ESP32S3
|
#ifdef ARCH_ESP32
|
||||||
// In esp32s3 framework, setRxBufferSize needs to be initialized before Serial
|
// In esp32s3 framework, setRxBufferSize needs to be initialized before Serial
|
||||||
_serial_gps->setRxBufferSize(2048); // the default is 256
|
_serial_gps->setRxBufferSize(2048); // the default is 256
|
||||||
#endif
|
#endif
|
||||||
|
@ -157,11 +157,6 @@ bool GPS::setupGPS()
|
||||||
_serial_gps->begin(GPS_BAUDRATE);
|
_serial_gps->begin(GPS_BAUDRATE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONFIG_IDF_TARGET_ESP32
|
|
||||||
_serial_gps->setRxBufferSize(2048); // the default is 256
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef LILYGO_TBEAM_S3_CORE
|
#ifdef LILYGO_TBEAM_S3_CORE
|
||||||
/*
|
/*
|
||||||
* T-Beam-S3-Core will be preset to use gps Probe here, and other boards will not be changed first
|
* T-Beam-S3-Core will be preset to use gps Probe here, and other boards will not be changed first
|
||||||
|
|
Ładowanie…
Reference in New Issue