File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -407,6 +407,9 @@ def exit_cleanly(signum, frame):
407407 txt += f"ISO: { pkt .getSensitivity ():4} , "
408408 txt += f"Lens pos: { pkt .getLensPosition ():3} , "
409409 txt += f"Color temp: { pkt .getColorTemperature ()} K"
410+ if needs_newline :
411+ print ()
412+ needs_newline = False
410413 print (txt )
411414 capture = c in capture_list
412415 if capture :
@@ -452,7 +455,7 @@ def exit_cleanly(signum, frame):
452455 print ("\r FPS:" ,
453456 * ["{:6.2f}|{:6.2f}" .format (fps_host [c ].get (), fps_capt [c ].get ()) for c in cam_list ],
454457 end = ' ' , flush = True )
455- if show : print ()
458+ needs_newline = True
456459
457460 key = cv2 .waitKey (1 )
458461 if key == ord ('q' ):
@@ -626,3 +629,5 @@ def exit_cleanly(signum, frame):
626629 tofConfig .depthParams .minimumAmplitude = amp_min
627630 tofCfgQueue .send (tofConfig )
628631 controlQueue .send (ctrl )
632+
633+ print ()
You can’t perform that action at this time.
0 commit comments