diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-04-24 15:54:18 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-04-24 15:54:18 -0400 |
commit | 64031ab3d7c5a857d5bdaa975752112f2da38a49 (patch) | |
tree | 9b2133ae16967a6464f44779c98120c38c99dd0d /klippy/extras/hall_filament_width_sensor.py | |
parent | 61524542d20e50c4866836d6ed23ca03521ffb15 (diff) | |
download | kutter-64031ab3d7c5a857d5bdaa975752112f2da38a49.tar.gz kutter-64031ab3d7c5a857d5bdaa975752112f2da38a49.tar.xz kutter-64031ab3d7c5a857d5bdaa975752112f2da38a49.zip |
gcode: Rename respond() to respond_raw()
Rename the method to make it more clear that it is a low-level call
that should be rarely used.
Also, change gcode_button.py, hall_filament_width_sensor.py, and
tsl1401cl_filament_width_sensor.py to use respond_info() instead of
respond_raw().
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/hall_filament_width_sensor.py')
-rw-r--r-- | klippy/extras/hall_filament_width_sensor.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/klippy/extras/hall_filament_width_sensor.py b/klippy/extras/hall_filament_width_sensor.py index 860ec2ca..d95f6088 100644 --- a/klippy/extras/hall_filament_width_sensor.py +++ b/klippy/extras/hall_filament_width_sensor.py @@ -134,11 +134,11 @@ class HallFilamentWidthSensor: + str(self.diameter)) else: response += "Filament NOT present" - self.gcode.respond(response) + self.gcode.respond_info(response) def cmd_ClearFilamentArray(self, params): self.filament_array = [] - self.gcode.respond("Filament width measurements cleared!") + self.gcode.respond_info("Filament width measurements cleared!") # Set extrude multiplier to 100% self.gcode.run_script_from_command("M221 S100") @@ -151,7 +151,7 @@ class HallFilamentWidthSensor: # Start extrude factor update timer self.reactor.update_timer(self.extrude_factor_update_timer, self.reactor.NOW) - self.gcode.respond(response) + self.gcode.respond_info(response) def cmd_M406(self, params): response = "Filament width sensor Turned Off" @@ -166,7 +166,7 @@ class HallFilamentWidthSensor: self.filament_array = [] # Set extrude multiplier to 100% self.gcode.run_script_from_command("M221 S100") - self.gcode.respond(response) + self.gcode.respond_info(response) def cmd_Get_Raw_Values(self, params): response = "ADC1=" @@ -175,7 +175,7 @@ class HallFilamentWidthSensor: response += (" RAW="+ str(self.lastFilamentWidthReading +self.lastFilamentWidthReading2)) - self.gcode.respond(response) + self.gcode.respond_info(response) def get_status(self, eventtime): return {'Diameter': self.diameter, 'Raw':(self.lastFilamentWidthReading+ |