Avoided setup-dependent error (file structuring). Implemented TNMR application search and re-open if it closes. This will not fix any particularly odd situations, but it will recover the majority of TNMR crashes and user error.

This commit is contained in:
2025-08-15 11:15:10 +02:00
parent bee3f5615a
commit 558bbfded9
4 changed files with 18 additions and 2 deletions

View File

@@ -211,7 +211,7 @@ def get_event_header(event_type, vals, tables, table_reg, tuning_number, col_del
if(len(codes) == 6): # regular header
headerstr += f'{tuning_number}{Z*3}{codes[0]}1{codes[1]}{codes[2]}'
headerstr += f'{codes[5]}{Z*3}{codes[3]}{codes[4]}{Z*2}\x01'
elif(len(codes) == 4): # exteension
elif(len(codes) == 4): # extension
headerstr += f'{tuning_number}{Z*3}{codes[0]}{Z*3}{codes[1]}{Z*3}{codes[2]}{Z*3}{codes[3]}'
else:
print('PANIC')