Skip to content

Commit

Permalink
distinguish between integrated and I2C temperature
Browse files Browse the repository at this point in the history
  • Loading branch information
hishizuka committed Jan 13, 2024
1 parent f42ec57 commit a832d11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/gui_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class GUI_Config:
"self.sensor.values['integrated']['grade_spd']",
),
"GlideRatio": ("{:.0f}m", "self.sensor.values['integrated']['glide_ratio']"),
"Temp": ("{:3.0f}C", "self.sensor.values['integrated']['temperature']"),
# average_values
"Power(3s)": (
G_UNIT["Power"],
Expand Down Expand Up @@ -178,7 +179,7 @@ class GUI_Config:
"HR2": (G_UNIT["HeartRate"], "None"),
"HR3": (G_UNIT["HeartRate"], "None"),
# Sensor raw
"Temp": ("{:3.0f}C", "self.sensor.values['integrated']['temperature']"),
"Temp(I2C)": ("{:3.0f}C", "self.sensor.values['I2C']['temperature']"),
"Pressure": ("{:4.0f}hPa", "self.sensor.values['I2C']['pressure']"),
"Altitude": (G_UNIT["Altitude"], "self.sensor.values['I2C']['altitude']"),
"Humidity": ("{:3.0f}%", "self.sensor.values['I2C']['humidity']"),
Expand Down

0 comments on commit a832d11

Please sign in to comment.