Repeater, room server, sensor, companion: disable unused I2C on nRF52 and calibrate noise floor every 10 s
This commit is contained in:
1 parent
a5bdc6db81
commit
76bf7afa11
3 files changed
+38
-1
No files matched your search
@@ -240,6 +240,11 @@ unnecessary idle draw that affect all nRF52 boards (not only SenseCAP Solar):
|
||||
- **Disconnect GPS UART pins while GPS is off**: `NmeaGpsDriver::stopHardware()`
|
||||
now resets the UART TX/RX pins via `nrf_gpio_cfg_default()` after `Uart::end()`,
|
||||
preventing back-powering of the unpowered GPS receiver through GPIO/ESD paths.
|
||||
- **Disable unused I2C bus & lower noise-floor calibration rate**: on nRF52,
|
||||
`EnvironmentSensorManager::begin()` calls `Wire.end()` when the I2C bus scan
|
||||
finds zero devices (re-enabling temporarily for the `i2c` CLI command).
|
||||
`NOISE_FLOOR_CALIB_INTERVAL` is raised from 2 s to 10 s to cut idle SPI
|
||||
wake-ups 5x.
|
||||
|
||||
## Measuring this yourself — two traps
|
||||
|
||||
|
||||
Reference in new issue
Block a user