reset the GNSS modules after rebooting
@@ -27,12 +27,16 @@ void GPSInput::enable() {
// reset the GPS modules
if (this->reset_pin) {
+ // first wait for 5 s
+ app.onDelay(5000, [this](){
pinMode(this->reset_pin, OUTPUT);
digitalWrite(this->reset_pin, LOW);
- app.onDelay(100, [this](){
+ // keep the reset pin pulled low for 1 s
+ app.onDelay(1000, [this](){
digitalWrite(this->reset_pin, HIGH);
pinMode(this->reset_pin, INPUT);
});
+ });
}
// enable reading the serial port
