diff --git a/src/lib/helpers/recipe_manager.py b/src/lib/helpers/recipe_manager.py
index 1168dc8..2969d50 100644
--- a/src/lib/helpers/recipe_manager.py
+++ b/src/lib/helpers/recipe_manager.py
@@ -65,7 +65,7 @@ def read_steps(row, config, defaults=None, unsupported_steps=None):
},
"instruction": {},
"pipe_cutter": {
- "lenght": row.get("l_taglio_guaina_gc_[mm]", defaults["lunghezza_corrugato"]),
+ "length": row.get("l_taglio_guaina_gc_[mm]", defaults["lunghezza_corrugato"]),
"diameter": row.get("diametro_corrugato", defaults["diametro_corrugato"]),
},
# Empty placeholder for future extensions
diff --git a/src/lib/nfc/clf/pn53x.py b/src/lib/nfc/clf/pn53x.py
index f8495d5..b19ac0c 100644
--- a/src/lib/nfc/clf/pn53x.py
+++ b/src/lib/nfc/clf/pn53x.py
@@ -204,19 +204,19 @@ class Chipset(object):
if frame.startswith(self.SOF + b'\xFF\xFF'):
# extended frame
if sum(frame[5:8]) & 0xFF != 0:
- self.log.error("frame lenght checksum error")
+ self.log.error("frame length checksum error")
raise IOError(errno.EIO, os.strerror(errno.EIO))
if unpack(">H", memoryview(frame[5:7]))[0] != len(frame) - 10:
- self.log.error("frame lenght value mismatch")
+ self.log.error("frame length value mismatch")
raise IOError(errno.EIO, os.strerror(errno.EIO))
del frame[0:8]
elif frame.startswith(self.SOF):
# normal frame
if sum(frame[3:5]) & 0xFF != 0:
- self.log.error("frame lenght checksum error")
+ self.log.error("frame length checksum error")
raise IOError(errno.EIO, os.strerror(errno.EIO))
if frame[3] != len(frame) - 7:
- self.log.error("frame lenght value mismatch")
+ self.log.error("frame length value mismatch")
raise IOError(errno.EIO, os.strerror(errno.EIO))
del frame[0:5]
else:
@@ -590,8 +590,8 @@ class Device(device.Device):
def sense_dep(self, target):
# Attempt active communication mode target activation.
assert target.atr_req, "the target.atr_req attribute is required"
- assert len(target.atr_req) >= 16, "minimum lenght of atr_req is 16"
- assert len(target.atr_req) <= 64, "maximum lenght of atr_req is 64"
+ assert len(target.atr_req) >= 16, "minimum length of atr_req is 16"
+ assert len(target.atr_req) <= 64, "maximum length of atr_req is 64"
# bitrate and modulation type for send/recv must be set and equal
assert target.brty_send and target.brty_recv
diff --git a/src/lib/nfc/tag/tt4.py b/src/lib/nfc/tag/tt4.py
index 08267eb..9603ce6 100644
--- a/src/lib/nfc/tag/tt4.py
+++ b/src/lib/nfc/tag/tt4.py
@@ -42,7 +42,7 @@ class Type4TagCommandError(nfc.tag.TagCommandError):
"""
errno_str = {
# ISO/IEC 7816-4 (2005) APDU errors (SW1/SW2)
- 0x6700: "wrong lenght (general error)",
+ 0x6700: "wrong length (general error)",
0x6900: "command not allowed (general error)",
0x6981: "command incompatible with file structure",
0x6982: "security status not satisfied",
diff --git a/src/ui/pipe_cutter_step_editor/pipe_cutter_step_editor.py b/src/ui/pipe_cutter_step_editor/pipe_cutter_step_editor.py
index 27ac7c0..c9da9c9 100644
--- a/src/ui/pipe_cutter_step_editor/pipe_cutter_step_editor.py
+++ b/src/ui/pipe_cutter_step_editor/pipe_cutter_step_editor.py
@@ -5,7 +5,7 @@ class Pipe_Cutter_Step_Editor(Editor):
def __init__(self, action=None, cell_widget=None):
super().__init__(action=action, cell_widget=cell_widget)
self.spec.update({
- "lenght": self.lenght_le,
+ "length": self.length_le,
"diameter":self.diameter_le
})
diff --git a/src/ui/pipe_cutter_step_editor/pipe_cutter_step_editor.ui b/src/ui/pipe_cutter_step_editor/pipe_cutter_step_editor.ui
index e14f823..6652733 100644
--- a/src/ui/pipe_cutter_step_editor/pipe_cutter_step_editor.ui
+++ b/src/ui/pipe_cutter_step_editor/pipe_cutter_step_editor.ui
@@ -45,7 +45,7 @@
Lunghezza Corrugato
-
+
160
diff --git a/src/ui/test_pipe_cutter/test_pipe_cutter.py b/src/ui/test_pipe_cutter/test_pipe_cutter.py
index 6e63d04..2e123d1 100644
--- a/src/ui/test_pipe_cutter/test_pipe_cutter.py
+++ b/src/ui/test_pipe_cutter/test_pipe_cutter.py
@@ -52,14 +52,14 @@ class Test_Pipe_Cutter(Test_Test):
"""
Perform the pipe cutting process when in the 'ready for operation' state (102).
"""
- self.lenght = self.step.spec["lenght"]
+ self.length = self.step.spec["length"]
self.diameter = self.step.spec["diameter"]
if self.current_status == 102:
try:
- self.lenght = int(self.lenght)*100
+ self.length = int(self.length)*100
self.diameter = int(self.diameter)*100
- print(self.lenght)
+ print(self.length)
self.components["pipe_cutter"].write_od_of_pipe(self.diameter)
time.sleep(1)
self.components["pipe_cutter"].write_od_of_pipe(self.diameter)