From f9d79964ef5c1019b70c40914e01838bb35a3429 Mon Sep 17 00:00:00 2001 From: Mictronics Date: Sat, 20 Jul 2024 13:47:04 +0200 Subject: [PATCH] Remove duplicate code and fix error: #if with no expression (#4307) * Fix LED pinout for T-Echo board marked v1.0, date 2021-6-28 * Merge PR #420 * Fixed double and missing Default class. * Use correct format specifier and fixed typo. * Removed duplicate code. * Fix error: #if with no expression --------- Co-authored-by: Ben Meadors --- src/gps/GPS.cpp | 2 +- src/mesh/NodeDB.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gps/GPS.cpp b/src/gps/GPS.cpp index 8eb7fef27..feeac8494 100644 --- a/src/gps/GPS.cpp +++ b/src/gps/GPS.cpp @@ -865,7 +865,7 @@ void GPS::writePinStandby(bool standby) // Determine the new value for the pin // Normally: active HIGH for awake -#if PIN_GPS_STANDBY_INVERTED +#ifdef PIN_GPS_STANDBY_INVERTED bool val = standby; #else bool val = !standby; diff --git a/src/mesh/NodeDB.cpp b/src/mesh/NodeDB.cpp index 5678009c0..c0bed3437 100644 --- a/src/mesh/NodeDB.cpp +++ b/src/mesh/NodeDB.cpp @@ -432,7 +432,6 @@ void NodeDB::initModuleConfigIntervals() moduleConfig.telemetry.power_update_interval = 0; moduleConfig.neighbor_info.update_interval = 0; moduleConfig.paxcounter.paxcounter_update_interval = 0; - moduleConfig.neighbor_info.update_interval = 0; } void NodeDB::installDefaultChannels()