Răsfoiți Sursa

handle edge case

tuanchris 3 luni în urmă
părinte
comite
ac8291db46
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      modules/connection/connection_manager.py

+ 2 - 0
modules/connection/connection_manager.py

@@ -451,6 +451,8 @@ def home(timeout=15):
 
             if idle_reached:
                 state.current_rho = 0
+                if not state.current_theta:
+                    state.current_theta = 0
                 homing_success = True
                 logger.info("Homing completed and device is idle")
             else: