Skip to content

Commit

Permalink
fix bug: remove eventtime parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
G authored and G committed Jan 20, 2024
1 parent 8e1562e commit 0ce0986
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions klippy/extras/hx71x.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def trigger(self, eventime):
self.trigger_time = eventime

def query_endstop(self, eventime):
return self._hx71x.is_endstop_on(eventime)
return self._hx71x.is_endstop_on()


class HX71X:
Expand Down Expand Up @@ -330,7 +330,7 @@ def _handle_hx71x_state(self, params):
self._endstop.trigger(last_read_time)

# compare the total weight with endstop_base+threshold, if total weight is bigger than it, return True.
def is_endstop_on(self, eventtime):
def is_endstop_on(self):
if self.total_weight > (self.endstop_base + self.endstop_threshold):
return True
else:
Expand Down

0 comments on commit 0ce0986

Please sign in to comment.