Fix source typos

This commit is contained in:
luz paz 2021-09-07 11:34:22 -04:00
parent d68f375e38
commit 9b203c834a
8 changed files with 18 additions and 18 deletions

View file

@ -1367,11 +1367,11 @@ class ChangeAtZProcessor:
# handle extruder temp changes
if command.command == "M104" or command.command == "M109":
# get our tempurature
tempurature = command.getArgumentAsFloat("S")
# get our temperature
temperature = command.getArgumentAsFloat("S")
# don't bother if we don't have a tempurature
if tempurature is None:
# don't bother if we don't have a temperature
if temperature is None:
return
# get our extruder, default to extruder one
@ -1379,10 +1379,10 @@ class ChangeAtZProcessor:
# set our extruder temp based on the extruder
if extruder is None or extruder == 0:
self.lastValues["extruderOne"] = tempurature
self.lastValues["extruderOne"] = temperature
if extruder is None or extruder == 1:
self.lastValues["extruderTwo"] = tempurature
self.lastValues["extruderTwo"] = temperature
# move to the next command
return
@ -1401,10 +1401,10 @@ class ChangeAtZProcessor:
if command.command == "M221":
# get our flow rate
tempurature = command.getArgumentAsFloat("S")
temperature = command.getArgumentAsFloat("S")
# don't bother if we don't have a flow rate (for some reason)
if tempurature is None:
if temperature is None:
return
# get our extruder, default to global
@ -1412,11 +1412,11 @@ class ChangeAtZProcessor:
# set our extruder temp based on the extruder
if extruder is None:
self.lastValues["flowrate"] = tempurature
self.lastValues["flowrate"] = temperature
elif extruder == 1:
self.lastValues["flowrateOne"] = tempurature
self.lastValues["flowrateOne"] = temperature
elif extruder == 1:
self.lastValues["flowrateTwo"] = tempurature
self.lastValues["flowrateTwo"] = temperature
# move to the next command
return

View file

@ -300,7 +300,7 @@ Item
// don't allow the upper handle to be lower than the lower handle
if (y - (upperHandle.y + upperHandle.height) < sliderRoot.minimumRangeHandleSize)
{
upperHandle.y = y - (upperHandle.heigth + sliderRoot.minimumRangeHandleSize)
upperHandle.y = y - (upperHandle.height + sliderRoot.minimumRangeHandleSize)
}
// update the range handle

View file

@ -26,7 +26,7 @@
"overrides": {
"machine_name": { "default_value": "Two Trees Base Printer" },
"machine_start_gcode": { "default_value": "G28 ;Home\nM420 S1 ;Enable ABL using saved Mesh and Fade Height\nG92 E0 ;Reset Extruder\nG1 Z2.0 F3000 ;Move bed down\nG1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position\nG1 X10.1 Y200.0 Z0.28 F1500.0 E15 ;Draw the first line\nG1 X10.4 Y200.0 Z0.28 F5000.0 ;Move to side a little\nG1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line\nG92 E0 ;Reset Extruder\nG1 Z2.0 F3000 ;Move Bed up" },
"machine_end_gcode": { "default_value": "G91 ;Relative positioning\nG1 E-2 F2700 ;Retract a bit\nG1 E-2 Z0.2 F2400 ;Retract and raise Z\nG1 X5 Y5 F3000 ;Wipe out\nG1 Z10 ;Raise Z more\nG90 ;Absolute positionning\n\nG1 X0 Y{machine_depth} ;Present print\nM106 S0 ;Turn-off fan\nM104 S0 ;Turn-off hotend\nM140 S0 ;Turn-off bed\n\nM84 X Y E ;Disable all steppers but Z\n" },
"machine_end_gcode": { "default_value": "G91 ;Relative positioning\nG1 E-2 F2700 ;Retract a bit\nG1 E-2 Z0.2 F2400 ;Retract and raise Z\nG1 X5 Y5 F3000 ;Wipe out\nG1 Z10 ;Raise Z more\nG90 ;Absolute positioning\n\nG1 X0 Y{machine_depth} ;Present print\nM106 S0 ;Turn-off fan\nM104 S0 ;Turn-off hotend\nM140 S0 ;Turn-off bed\n\nM84 X Y E ;Disable all steppers but Z\n" },
"machine_heated_bed": { "default_value": true },

View file

@ -1,6 +1,6 @@
[general]
version = 4
name = Standart Quality
name = Standard Quality
definition = uni_base
[metadata]

View file

@ -1,6 +1,6 @@
[general]
version = 4
name = Fast Standart Quality
name = Fast Standard Quality
definition = uni_base
[metadata]

View file

@ -1,6 +1,6 @@
[general]
version = 4
name = Standart Quality
name = Standard Quality
definition = zav_base
[metadata]

View file

@ -1,6 +1,6 @@
[general]
version = 4
name = Fast Standart Quality
name = Fast Standard Quality
definition = zav_base
[metadata]

View file

@ -19,7 +19,7 @@ def test_createVisibilityPresetFromLocalFile():
# of the other profiles, since they might change over time.
visibility_preset = SettingVisibilityPreset()
visibility_preset.loadFromFile(os.path.join(os.path.dirname(os.path.abspath(__file__)), "setting_visiblity_preset_test.cfg"))
visibility_preset.loadFromFile(os.path.join(os.path.dirname(os.path.abspath(__file__)), "setting_visibility_preset_test.cfg"))
assert setting_visibility_preset_test_settings == set(visibility_preset.settings)
assert visibility_preset.name == "test"