Skip to content

Commit

Permalink
remove useless else stamement
Browse files Browse the repository at this point in the history
  • Loading branch information
krautech committed Dec 15, 2024
1 parent 361c61d commit 7026f57
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,15 +729,13 @@ def start_touch(self, gcmd: GCodeCommand, touch_settings, verbose: bool):

# Return relevant data
self.detect_threshold_z = original_threshold
return {
"samples": samples,
"standard_deviation": std_dev,
"final_position": initial_position,
"retries": retries,
"success": self.previous_probe_success,
}
else:
return False
return {
"samples": samples,
"standard_deviation": std_dev,
"final_position": initial_position,
"retries": retries,
"success": self.previous_probe_success,
}
except self.printer.command_error:
self.detect_threshold_z = original_threshold
self.trigger_method = TriggerMethod.SCAN
Expand Down

0 comments on commit 7026f57

Please sign in to comment.