Update display to remove units if baro == none
This commit is contained in:
@@ -127,7 +127,7 @@ def tell(msg: str) -> None:
|
|||||||
lnav = adsb.lnav_mode(msg)
|
lnav = adsb.lnav_mode(msg)
|
||||||
_print("Selected altitude", alt, "feet")
|
_print("Selected altitude", alt, "feet")
|
||||||
_print("Altitude source", alt_source)
|
_print("Altitude source", alt_source)
|
||||||
_print("Barometric pressure setting", baro, "millibars")
|
_print("Barometric pressure setting", baro, "" if baro == None else "millibars")
|
||||||
_print("Selected Heading", hdg, "°")
|
_print("Selected Heading", hdg, "°")
|
||||||
if not (common.bin2int((common.hex2bin(msg)[32:])[46]) == 0):
|
if not (common.bin2int((common.hex2bin(msg)[32:])[46]) == 0):
|
||||||
_print("Autopilot", types_29[autopilot] if autopilot else None)
|
_print("Autopilot", types_29[autopilot] if autopilot else None)
|
||||||
|
|||||||
Reference in New Issue
Block a user