diff --git a/extras/AFC.py b/extras/AFC.py index 41bff41..9070235 100644 --- a/extras/AFC.py +++ b/extras/AFC.py @@ -107,6 +107,7 @@ def _update_trsync(self, config): trsync_value = config.getfloat("trsync_timeout", 0.05) trsync_single_value = config.getfloat("trsync_single_timeout", 0.5) + # Making sure value exists as danker klipper does not have TRSYNC_TIMEOUT value if( hasattr(mcu, "TRSYNC_TIMEOUT")): mcu.TRSYNC_TIMEOUT = max(mcu.TRSYNC_TIMEOUT, trsync_value) else : self.gcode.respond_info("TRSYNC_TIMEOUT does not exist in mcu file, not updating")