Update aws_gfx_helper.py

display was not updating Fahrenheit temperature due to missing .text
This commit is contained in:
amswak 2021-06-26 17:59:12 -04:00 committed by GitHub
parent a9386e33ac
commit e6ac6beb4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,7 +106,7 @@ class AWS_GFX(displayio.Group):
self.temp_data_label.color = 0xFD2EE
elif temp_data <= 32:
self.temp_data_label.color = 0xFF0000
self.temp_data_label = '%0.0f°F'%temp_data
self.temp_data_label.text = '%0.0f°F'%temp_data
temp_data = '%0.0f'%temp_data
return int(temp_data)
else: