mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-03 20:30:43 +00:00
keep lora radio totally unpowered when in deep-sleep
This commit is contained in:
parent
c0c83ad389
commit
b47c54b5b6
@ -10,8 +10,6 @@ ublox parsing failure
|
|||||||
|
|
||||||
record power measurements and update spreadsheet
|
record power measurements and update spreadsheet
|
||||||
|
|
||||||
make sure we are turning off lora radio in deep sleep
|
|
||||||
|
|
||||||
have loop methods return allowable sleep time (from their perspective)
|
have loop methods return allowable sleep time (from their perspective)
|
||||||
increase main cpu sleep time
|
increase main cpu sleep time
|
||||||
|
|
||||||
|
@ -170,17 +170,18 @@ void doDeepSleep(uint64_t msecToWake)
|
|||||||
|
|
||||||
#ifdef TBEAM_V10
|
#ifdef TBEAM_V10
|
||||||
if (axp192_found) {
|
if (axp192_found) {
|
||||||
|
// Obsolete comment: from back when we we used to receive lora packets while CPU was in deep sleep.
|
||||||
|
// We no longer do that, because our light-sleep current draws are low enough and it provides fast start/low cost
|
||||||
|
// wake. We currently use deep sleep only for 'we want our device to actually be off - because our battery is
|
||||||
|
// critically low'. So in deep sleep we DO shut down power to LORA (and when we boot later we completely reinit it)
|
||||||
|
//
|
||||||
// No need to turn this off if the power draw in sleep mode really is just 0.2uA and turning it off would
|
// No need to turn this off if the power draw in sleep mode really is just 0.2uA and turning it off would
|
||||||
// leave floating input for the IRQ line
|
// leave floating input for the IRQ line
|
||||||
|
|
||||||
// If we want to leave the radio receving in would be 11.5mA current draw, but most of the time it is just waiting
|
// If we want to leave the radio receving in would be 11.5mA current draw, but most of the time it is just waiting
|
||||||
// in its sequencer (true?) so the average power draw should be much lower even if we were listinging for packets
|
// in its sequencer (true?) so the average power draw should be much lower even if we were listinging for packets
|
||||||
// all the time.
|
// all the time.
|
||||||
|
|
||||||
// axp.setPowerOutPut(AXP192_LDO2, AXP202_OFF); // LORA radio
|
axp.setPowerOutPut(AXP192_LDO2, AXP202_OFF); // LORA radio
|
||||||
|
|
||||||
// now done by UBloxGPS.cpp
|
|
||||||
// setGPSPower(false);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user