|
35 | 35 | try: from extras.AFC_stats import AFCStats |
36 | 36 | except: raise error(ERROR_STR.format(import_lib="AFC_stats", trace=traceback.format_exc())) |
37 | 37 |
|
38 | | -AFC_VERSION="1.0.34" |
| 38 | +AFC_VERSION="1.0.35" |
39 | 39 |
|
40 | 40 | # Class for holding different states so its clear what all valid states are |
41 | 41 | class State: |
@@ -469,6 +469,13 @@ def in_print_reactor_timer(self, eventtime): |
469 | 469 | self.current_toolchange = -1 # Reset |
470 | 470 | self.logger.info("Total number of toolchanges set to {}".format(self.number_of_toolchanges)) |
471 | 471 |
|
| 472 | + # Get current lane and update position to reset fault detection as sometimes |
| 473 | + # purging in PRINT_START can lead to false positive detections |
| 474 | + current_lane = self.function.get_current_lane_obj() |
| 475 | + if current_lane: |
| 476 | + if current_lane.buffer_obj is not None: |
| 477 | + current_lane.buffer_obj.update_filament_error_pos() |
| 478 | + |
472 | 479 | return self.reactor.NEVER |
473 | 480 |
|
474 | 481 | def _get_default_material_temps(self, cur_lane): |
@@ -1251,7 +1258,9 @@ def TOOL_LOAD(self, cur_lane, purge_length=None): |
1251 | 1258 | cur_lane.sync_to_extruder() |
1252 | 1259 | # Update tool and lane status. |
1253 | 1260 | cur_lane.set_loaded() |
1254 | | - cur_lane.enable_buffer() |
| 1261 | + # Setting disable_fault so that fault detection is turned off for users |
| 1262 | + # that utilize poop |
| 1263 | + cur_lane.enable_buffer(disable_fault=True) |
1255 | 1264 | self.save_vars() |
1256 | 1265 |
|
1257 | 1266 | # Activate the tool-loaded LED and handle filament operations if enabled. |
@@ -1281,6 +1290,8 @@ def TOOL_LOAD(self, cur_lane, purge_length=None): |
1281 | 1290 | self.afcDeltaTime.log_with_time("TOOL_LOAD: After second wipe") |
1282 | 1291 | self.function.log_toolhead_pos() |
1283 | 1292 |
|
| 1293 | + cur_lane.enable_fault_detection() |
| 1294 | + |
1284 | 1295 | # Update lane and extruder state for tracking. |
1285 | 1296 | cur_extruder.lane_loaded = cur_lane.name |
1286 | 1297 | self.spool.set_active_spool(cur_lane.spool_id) |
|
0 commit comments