From b38338efc03cd5de79b7c4b066a94bc2fbe0c306 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Thu, 17 Dec 2015 20:59:21 -0800 Subject: [PATCH] Keep MAX2837 in standby so temperature can be read. I think this won't significantly impact power consumption. --- firmware/application/max2837.cpp | 2 ++ firmware/application/radio.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/firmware/application/max2837.cpp b/firmware/application/max2837.cpp index f932cbaa..7456a1bc 100644 --- a/firmware/application/max2837.cpp +++ b/firmware/application/max2837.cpp @@ -124,6 +124,8 @@ void MAX2837::init() { _dirty.set(); flush(); + + set_mode(Mode::Standby); } void MAX2837::set_mode(const Mode mode) { diff --git a/firmware/application/radio.cpp b/firmware/application/radio.cpp index dbb29eac..97463663 100644 --- a/firmware/application/radio.cpp +++ b/firmware/application/radio.cpp @@ -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); }