Skip to content

Commit

Permalink
don't set gpsen HIGH after sleep (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
gauteh committed Jun 4, 2024
1 parent d0eb11e commit b667294
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/board_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ void turn_gnss_on(void){

void turn_gnss_off(void){
Serial.println(F("turn gnss off"));
gnss.powerOff(60 * 60 * 1000); // sleep for 1 hour
pinMode(gnssEN, OUTPUT);
digitalWrite(gnssEN, HIGH); // Disable GNSS power (HIGH = disable; LOW = enable)
delay(10);
pinMode(gnssEN, INPUT_PULLUP); // Configure the pin which enables power for the ZOE-M8Q GNSS
digitalWrite(gnssEN, LOW);
delay(100);
gnss.powerOff(60 * 60 * 1000); // sleep for 1 hour
pinMode(gnssEN, INPUT_PULLUP); // TODO: maybe this wakes it up again?
}

void turn_iridium_on(void){
Expand Down

0 comments on commit b667294

Please sign in to comment.