Keep MAX2837 in standby so temperature can be read.

I think this won't significantly impact power consumption.
This commit is contained in:
Jared Boone 2015-12-17 20:59:21 -08:00
parent 1146d1fa06
commit b38338efc0
2 changed files with 3 additions and 1 deletions

View File

@ -124,6 +124,8 @@ void MAX2837::init() {
_dirty.set();
flush();
set_mode(Mode::Standby);
}
void MAX2837::set_mode(const Mode mode) {

View File

@ -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);
}