Skip to content

Commit

Permalink
Minor fixes, nothing impactful left to do for this PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kragg Malak committed Dec 14, 2023
1 parent a5abc3d commit a72b3b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions esp32_marauder/GpsInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ void GpsInterface::begin() {
Serial2.read();
}

this->flush_queue(); //init the queue, kill NULLs
this->type_flag=GPSTYPE_NATIVE; //enforce default
this->disable_queue(); //init the queue, disabled, kill NULLs

nmea.setUnknownSentenceHandler(gps_nmea_notimp);
}
Expand Down Expand Up @@ -225,8 +226,8 @@ void GpsInterface::enable_queue(){
}

void GpsInterface::disable_queue(){
this->flush_queue();
this->queue_enabled_flag=0;
this->flush_queue();
}

bool GpsInterface::queue_enabled(){
Expand Down
2 changes: 1 addition & 1 deletion esp32_marauder/GpsInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ class GpsInterface {
void setGPSInfo();
};

#endif
#endif

0 comments on commit a72b3b3

Please sign in to comment.