mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-14 20:52:12 -04:00
Tighten up radio API, stop leaking 1st/2nd IF instances.
This commit is contained in:
parent
ef86848139
commit
3e2b6087c2
4 changed files with 48 additions and 8 deletions
|
@ -54,7 +54,7 @@ std::vector<TemperatureLogger::sample_t> TemperatureLogger::history() const {
|
|||
|
||||
TemperatureLogger::sample_t TemperatureLogger::read_sample() {
|
||||
// MAX2837 does not return a valid temperature if in "shutdown" mode.
|
||||
return radio::second_if.temp_sense() & 0x1f;
|
||||
return radio::debug::second_if::temp_sense();
|
||||
}
|
||||
|
||||
void TemperatureLogger::push_sample(const TemperatureLogger::sample_t sample) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue