Skip to content

Commit

Permalink
Avoid lego comments
Browse files Browse the repository at this point in the history
  • Loading branch information
todd-herbert committed Jun 5, 2024
1 parent 7017423 commit cdae4e9
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/gps/GPS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -774,18 +774,15 @@ GPS::~GPS()

void GPS::setGPSPower(bool on, bool standbyOnly, uint32_t sleepTime)
{
// Record the current state
LOG_INFO("Setting GPS powerState=");
if (on) {
// Record the current powerState
if (on)
powerState = GPS_AWAKE;
LOG_INFO("AWAKE\n");
} else if (!on && standbyOnly) {
else if (!on && standbyOnly)
powerState = GPS_STANDBY;
LOG_INFO("STANDBY\n");
} else {
else
powerState = GPS_OFF;
LOG_INFO("OFF\n");
}

LOG_DEBUG("GPS::powerState=%d\n", powerState);

if (on) {
clearBuffer(); // drop any old data waiting in the buffer before re-enabling
Expand Down

0 comments on commit cdae4e9

Please sign in to comment.