mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-01-11 15:29:28 -05:00
Keep MAX2837 in standby so temperature can be read.
I think this won't significantly impact power consumption.
This commit is contained in:
parent
1146d1fa06
commit
b38338efc0
@ -124,6 +124,8 @@ void MAX2837::init() {
|
||||
|
||||
_dirty.set();
|
||||
flush();
|
||||
|
||||
set_mode(Mode::Standby);
|
||||
}
|
||||
|
||||
void MAX2837::set_mode(const Mode mode) {
|
||||
|
@ -167,7 +167,7 @@ void streaming_disable() {
|
||||
void disable() {
|
||||
baseband_sgpio.streaming_disable();
|
||||
baseband_codec.set_mode(max5864::Mode::Shutdown);
|
||||
second_if.set_mode(max2837::Mode::Shutdown);
|
||||
second_if.set_mode(max2837::Mode::Standby);
|
||||
first_if.disable();
|
||||
set_rf_amp(false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user