Skip to content
Commit fb71ad5b authored by Jordan Yates's avatar Jordan Yates Committed by Anas Nashif
Browse files

lora: sx12xx_common: force sleep on boot



Force sx12xx modems into sleep mode on boot. This is the default state
of the modem when not being used due to the TX/RX complete callbacks.
This reduces current consumption by 600uA before the modems are used
for the first time.

As sleep is the normal state after TX/RX when using the LoRa API, it is
garaunteed that this will not change the behaviour of application code.
LoRaWAN starts by calling Radio.Init(), which resets the modem, so any
sleep configuration we do here is discarded.

Fixes #31567.

Signed-off-by: default avatarJordan Yates <jordan.yates@data61.csiro.au>
parent 893857b4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment