mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-11-16 07:53:53 +00:00
Fixed SPI Read timing issue affecting MAX283x chips (#1590)
* Slowed SPI timing to MAX283x by 20% * Fix temperature scaling
This commit is contained in:
@@ -372,7 +372,7 @@ int8_t MAX2839::temp_sense() {
|
||||
_map.r.rx_top_2.ts_adc_trigger = 0;
|
||||
flush_one(Register::RX_TOP_2);
|
||||
|
||||
return value * 4.31 - 75; // reg value is 0 to 31; possible return range is -75 C to 58 C
|
||||
return std::min(127, (int)(value * 4.31 - 40)); // reg value is 0 to 31; possible return range is -40 C to 127 C
|
||||
}
|
||||
|
||||
} // namespace max2839
|
||||
Reference in New Issue
Block a user