| # .replace(";;OK", ";") | # .replace(";;OK", ";") | ||||
| # .replace(";;", ";") | # .replace(";;", ";") | ||||
| #) | #) | ||||
| write_to_file(output_file, response + "\n") | |||||
| write_to_file(output_file, response + ";;;\n") | |||||
| except: | except: | ||||
| if not ser.is_open: | if not ser.is_open: | ||||
| print_message("Serial port is closed. Exit monitoring thread.") | print_message("Serial port is closed. Exit monitoring thread.") |