Skip to content

Commit

Permalink
Remove duplicate code and fix error: #if with no expression (#4307)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
Mictronics and thebentern authored Jul 20, 2024
1 parent 54df153 commit f9d7996
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/gps/GPS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/mesh/NodeDB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f9d7996

Please sign in to comment.