mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-07 09:15:07 -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
|
@ -101,10 +101,10 @@ private:
|
|||
|
||||
std::string temperature_str(const temperature_t temperature) const;
|
||||
|
||||
static constexpr temperature_t display_temp_min = 0;
|
||||
static constexpr temperature_t display_temp_min = -10; //Accomodate negative values, present in cold startup cases
|
||||
static constexpr temperature_t display_temp_scale = 3;
|
||||
static constexpr int bar_width = 1;
|
||||
static constexpr int temp_len = 3;
|
||||
static constexpr int temp_len = 4; //Now scale shows up to 4 chars ("-10C")
|
||||
};
|
||||
|
||||
class TemperatureView : public View {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue