fix status -> state typo
old-commit-hash: 1fe61569f720a30db58379b451452b84239c2e37
This commit is contained in:
@@ -52,7 +52,7 @@ if __name__ == "__main__":
|
||||
onroad = sm.all_checks(['deviceState']) and sm['deviceState'].started
|
||||
if onroad:
|
||||
cs = sm['controlsState']
|
||||
color = ("grey" if str(cs.status) in ("overriding", "preEnabled") else "green") if cs.enabled else "blue"
|
||||
color = ("grey" if str(cs.state) in ("overriding", "preEnabled") else "green") if cs.enabled else "blue"
|
||||
bg.setText("\U0001F44D" if cs.engageable else "\U0001F6D1")
|
||||
bg.setStyleSheet(f"font-size: 100px; background-color: {color};")
|
||||
bg.show()
|
||||
|
||||
Reference in New Issue
Block a user