added loggers
This commit is contained in:
@@ -622,7 +622,7 @@ class RotaryHandler(bbctrl.APIHandler):
|
||||
|
||||
except Exception: log.exception('Internal error: Failed to load config template')
|
||||
|
||||
log.info(f"Config data type {type(config_data)}")
|
||||
log.info("Config data type {}".format(type(config_data)))
|
||||
motors = config_data.get("motors")
|
||||
log.info("config_data: {}".format(config_data))
|
||||
motors_backup = config_data.get("motors-backup", {})
|
||||
@@ -639,7 +639,8 @@ class RotaryHandler(bbctrl.APIHandler):
|
||||
|
||||
is_axis_A = motor_2.get("axis") == "A"
|
||||
|
||||
if is_axis_A == status: return
|
||||
if is_axis_A == status:
|
||||
return
|
||||
|
||||
motor_2["axis"] = "Y" if is_axis_A else "A"
|
||||
motor_1["max-velocity"] *= 2 if is_axis_A else 0.5
|
||||
|
||||
Reference in New Issue
Block a user