Alarmdialog programmiert

This commit is contained in:
2025-09-10 16:58:20 +02:00
parent 7d8ce221fd
commit 14108b1165
7 changed files with 69 additions and 10 deletions

View File

@@ -278,16 +278,20 @@ def TXT(boatdata, msg):
print(f"TXT: {msg.msg_type} - {txt_msg}")
if not boatdata.alarm:
# Momentan wird kein bereits anstehender Alarm überschrieben
boatdata.setValue("TXT", txt_msg)
boatdata.alarm_msg = txt_msg.strip()
boatdata.alarm = True
boatdata.alarm_id = msg.msg_type
boatdata.alarm_src = "NMEA0183"
txt_curr = 0
txt_max = 0
else:
print(f"TXT: {msg.msg_type} - {msg.text}", end='')
if not boatdata.alarm:
# Momentan wird kein bereits anstehender Alarm überschrieben
boatdata.setValue("TXT", msg.text)
boatdata.alarm_msg = msg.text.strip()
boatdata.alarm = True
boatdata.alarm_id = msg.msg_type
boatdata.alarm_src = "NMEA0183"
def VBW(boatdata, msg):
print("-> VBW")