Display Vbat instead of Altitude

This commit is contained in:
Pierrick C 2018-08-17 23:20:08 +02:00
parent b7187d6d54
commit 9174e70030

View File

@ -90,7 +90,7 @@ def on_message(client, userdata, msg):
coord_type = { 'AT' : (1, data1_line), coord_type = { 'AT' : (1, data1_line),
'RH' : (inkyphat.WIDTH / 2 + 12, data1_line), 'RH' : (inkyphat.WIDTH / 2 + 12, data1_line),
'AP' : (1, data2_line), 'AP' : (1, data2_line),
'ALTI' : (inkyphat.WIDTH / 2 + 12, data2_line), 'VBAT' : (inkyphat.WIDTH / 2 + 12, data2_line),
} }
print(val) print(val)
if val['type'] in coord_type: if val['type'] in coord_type: