mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-02-04 08:55:21 -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();
|
_dirty.set();
|
||||||
flush();
|
flush();
|
||||||
|
|
||||||
|
set_mode(Mode::Standby);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MAX2837::set_mode(const Mode mode) {
|
void MAX2837::set_mode(const Mode mode) {
|
||||||
|
@ -167,7 +167,7 @@ void streaming_disable() {
|
|||||||
void disable() {
|
void disable() {
|
||||||
baseband_sgpio.streaming_disable();
|
baseband_sgpio.streaming_disable();
|
||||||
baseband_codec.set_mode(max5864::Mode::Shutdown);
|
baseband_codec.set_mode(max5864::Mode::Shutdown);
|
||||||
second_if.set_mode(max2837::Mode::Shutdown);
|
second_if.set_mode(max2837::Mode::Standby);
|
||||||
first_if.disable();
|
first_if.disable();
|
||||||
set_rf_amp(false);
|
set_rf_amp(false);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user