From 9134faaed1b1ff058839882a0aea0a5ce933019b Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Thu, 15 Oct 2020 16:11:40 +0800 Subject: [PATCH] turn off segger debug in ttgo eink build --- src/gps/NMEAGPS.cpp | 2 +- src/mesh/NodeDB.cpp | 1 + variants/eink/variant.h | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gps/NMEAGPS.cpp b/src/gps/NMEAGPS.cpp index d4d9639df..a155916af 100644 --- a/src/gps/NMEAGPS.cpp +++ b/src/gps/NMEAGPS.cpp @@ -102,7 +102,7 @@ bool NMEAGPS::whileIdle() // First consume any chars that have piled up at the receiver while (_serial_gps->available() > 0) { int c = _serial_gps->read(); - // DEBUG_MSG("%c", c); + //DEBUG_MSG("%c", c); isValid |= reader.encode(c); } diff --git a/src/mesh/NodeDB.cpp b/src/mesh/NodeDB.cpp index 613665dc8..cf47cfd15 100644 --- a/src/mesh/NodeDB.cpp +++ b/src/mesh/NodeDB.cpp @@ -147,6 +147,7 @@ bool NodeDB::resetRadioConfig() radioConfig.preferences.wait_bluetooth_secs = 30; radioConfig.preferences.position_broadcast_secs = 6 * 60; radioConfig.preferences.ls_secs = 60; + radioConfig.preferences.region = RegionCode_TW; } return didFactoryReset; diff --git a/variants/eink/variant.h b/variants/eink/variant.h index 1dd2e9dc2..2dc5ccc1c 100644 --- a/variants/eink/variant.h +++ b/variants/eink/variant.h @@ -239,7 +239,7 @@ External serial flash WP25R1635FZUIL0 #define PIN_SPI_SCK (0 + 19) // To debug via the segger JLINK console rather than the CDC-ACM serial device -#define USE_SEGGER +// #define USE_SEGGER #ifdef __cplusplus }