mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-03-04 17:14:38 -07:00
fix: Python2 syntax compatibility
Signed-off-by: Christopher Mattar <info@3dcoded.xyz>
This commit is contained in:
parent
d6a6607dcf
commit
c2447bb153
1 changed files with 3 additions and 2 deletions
|
|
@ -127,11 +127,12 @@ class QuadGantryLevel:
|
|||
def plot(self,f,x):
|
||||
return f[0]*x + f[1]
|
||||
def get_status(self, eventtime):
|
||||
return {
|
||||
status = {
|
||||
'z_height': self.z_height,
|
||||
'z_positions': self.z_positions,
|
||||
**self.z_status.get_status(eventtime)
|
||||
}
|
||||
status.update(self.z_status.get_status(eventtime))
|
||||
return status
|
||||
|
||||
def load_config(config):
|
||||
return QuadGantryLevel(config)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue