Fix peripheral power shutdown and auto-detect Station G3 radio slots

This commit is contained in:
mikecarper committed 2026-10-15 22:30:37 -07:00
1 parent c6e43c5530
commit 8eced48d34
103 files changed
+4900 -194

No files matched your search

+6
View File
@@ -162,9 +162,15 @@ public:
return false;
}
virtual LocationProvider* getLocationProvider() { return NULL; }
// Terminal deep sleep only. Providers may cut power without ending their
// UART; a concrete manager can release its own transport before pad hold.
virtual void shutdownGpsTransportForDeepSleep() { }
// WisBlock slot power is a boot-time choice, separate from logical GPS on/off.
virtual bool supportsSharedPeripheralMode() const { return false; }
virtual void configureSharedPeripheralMode(bool shared) { (void)shared; }
// Terminal rail removal must not interrupt external storage or its retained
// recovery state. Unknown managers/discovery fail closed; no probing here.
virtual bool canRemoveSharedStoragePowerForDeepSleep() const { return false; }
virtual bool isGpsPowered() const {
LocationProvider* location = const_cast<SensorManager*>(this)->getLocationProvider();
return location != NULL && location->isEnabled();