Skip to content

Commit

Permalink
move move to the right spot
Browse files Browse the repository at this point in the history
  • Loading branch information
misko committed Feb 13, 2024
1 parent eef26cc commit 0eb196c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spf/grbl_sdr_collect_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,10 @@ def grbl_thread_runner(gm, routine):

read_thread.read_lock.release()

if run_collection: # keep files and move to final
for idx in range(len(temp_filenames)):
os.rename(temp_filenames[idx], final_filenames[idx])

shutdown()
logging.info("Shuttingdown: sending false to threads")
for read_thread in read_threads:
Expand All @@ -478,8 +482,4 @@ def grbl_thread_runner(gm, routine):
logging.info("Grab grbl thread")
gm_thread.join()

if run_collection: # keep files and move to final
for idx in range(len(temp_filenames)):
os.rename(temp_filenames[idx], final_filenames[idx])

logging.info("Shuttingdown: done")

0 comments on commit 0eb196c

Please sign in to comment.