Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/helpers/sensors/RakI2cGpsDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,15 @@ class RakI2cGpsDriver : public GpsDriver {
}

#ifndef RAK_3401
pinMode(powerPin, INPUT);
if (powerPin == WB_IO2) {
// WB_IO2 switches the 3V3_S slot rail, which also powers a serial GPS and the other
// slot modules. Left as an input, the rail follows whatever the base board pulls it
// to: some keep it on, others switch it off, and the serial GPS loses power (#3830).
// Keep it driven HIGH, as before the probe; a GPS power pin re-claims it later.
digitalWrite(powerPin, HIGH);
} else {
pinMode(powerPin, INPUT);
}
#endif
return false;
}
Expand Down