Skip to content

Commit abffbbd

Browse files
committed
pinetime: disable UART by default
It is left enabled by the Wasp-OS bootloader. Disabling it gets us back to the baseline current consumption. Also see: wasp-os/wasp-bootloader#3
1 parent 343f2f3 commit abffbbd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

board-pinetime.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ func init() {
3333
// runtime power consumpton of the CPU core (almost halving the current
3434
// required).
3535
nrf.POWER.DCDCEN.Set(nrf.POWER_DCDCEN_DCDCEN)
36+
37+
// The UART is left enabled in the Wasp-OS bootloader.
38+
// This causes a 1.25mA increase in current consumption.
39+
// https://github.com/wasp-os/wasp-bootloader/pull/3
40+
nrf.UART0.ENABLE.Set(0)
3641
}
3742

3843
type mainBattery struct {

0 commit comments

Comments
 (0)