heaters implementation: extruder and bed, adding answers to gcode commands

This commit is contained in:
Nikolay Khabarov
2017-06-19 01:08:38 +03:00
parent df7eba664f
commit 53146941d1
16 changed files with 602 additions and 53 deletions
+8
View File
@@ -24,6 +24,14 @@ class GCode(object):
"""
self.params = params
def has(self, arg_name):
"""
Check if value is specified.
:param arg_name: Value name.
:return: boolean value.
"""
return arg_name in self.params
def get(self, arg_name, default=None, multiply=1.0):
""" Get value from gcode line.
:param arg_name: Value name.