tsi 2 rokov pred
rodič
commit
13f1e60603
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      scripts/check_serial.py

+ 1 - 1
scripts/check_serial.py

@@ -37,7 +37,7 @@ def check_log_file(log_file, error_msg, last_line_file):
     for i, line in enumerate(log_lines[last_line_read:]):
         if re.search(error_msg, line):
             with open(last_line_file, "w") as f:
-                f.write(str(last_line_read + i + 1))
+                f.write(str(last_line_read + i + 3))
             return True
     with open(last_line_file, "w") as f:
         f.write(str(len(log_lines)))