mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-21 21:34:33 -04:00
Nicer debug -> temperature graph
Lowered the scale -10 ºC so it accomodates less than zero temperatures, present sometimes when cold starting the system. Added 1 char for temperature label length. Adjusted the max2837 sensor value -> ºC temp result, by normalizing the conversion to correctly display the standard 25ºC, mentioned in Datasheet.
This commit is contained in:
parent
e6c5b3ede5
commit
b0880d6eff
2 changed files with 3 additions and 3 deletions
|
@ -121,7 +121,7 @@ void TemperatureWidget::paint(Painter& painter) {
|
|||
}
|
||||
|
||||
TemperatureWidget::temperature_t TemperatureWidget::temperature(const sample_t sensor_value) const {
|
||||
return -45 + sensor_value * 5;
|
||||
return -35 + sensor_value * 4; //max2837 datasheet temp 25ºC has sensor value: 15
|
||||
}
|
||||
|
||||
std::string TemperatureWidget::temperature_str(const temperature_t temperature) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue