aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/generic-re-arm.cfg2
-rw-r--r--klippy/extras/display/display.py4
-rw-r--r--klippy/extras/display/font8x14.py4
-rw-r--r--klippy/extras/display/uc1701.py8
-rw-r--r--src/generic/usb_cdc.c8
5 files changed, 13 insertions, 13 deletions
diff --git a/config/generic-re-arm.cfg b/config/generic-re-arm.cfg
index 13a2c792..ab388a4c 100644
--- a/config/generic-re-arm.cfg
+++ b/config/generic-re-arm.cfg
@@ -43,7 +43,7 @@ position_max: 200
step_pin: P2.0
dir_pin: P0.5
enable_pin: !P0.4
-step_distance: .0011365
+step_distance: .0011365
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: P2.5
diff --git a/klippy/extras/display/display.py b/klippy/extras/display/display.py
index b3c7577e..e358e92e 100644
--- a/klippy/extras/display/display.py
+++ b/klippy/extras/display/display.py
@@ -144,7 +144,7 @@ class PrinterLCD:
lcd_chip.write_text(0, 3, self.message)
if self.msg_time:
# Screen updates every .5 seconds
- self.msg_time -= .5
+ self.msg_time -= .5
if self.msg_time <= 0.:
self.message = None
self.msg_time = None
@@ -219,7 +219,7 @@ class PrinterLCD:
self.lcd_chip.write_text(0, 3, self.message)
if self.msg_time:
# Screen updates every .5 seconds
- self.msg_time -= .5
+ self.msg_time -= .5
if self.msg_time <= 0.:
self.message = None
self.msg_time = None
diff --git a/klippy/extras/display/font8x14.py b/klippy/extras/display/font8x14.py
index 361bd4c6..ad97900d 100644
--- a/klippy/extras/display/font8x14.py
+++ b/klippy/extras/display/font8x14.py
@@ -12,8 +12,8 @@
# Font comes from fntcol16.zip package found at:
# ftp://ftp.simtel.net/pub/simtelnet/msdos/screen/fntcol16.zip
# (c) Joseph Gil
-#
-# Indivdual fonts are public domain
+#
+# Indivdual fonts are public domain
######################################################################
VGA_FONT = [
diff --git a/klippy/extras/display/uc1701.py b/klippy/extras/display/uc1701.py
index eba5fd94..f76af041 100644
--- a/klippy/extras/display/uc1701.py
+++ b/klippy/extras/display/uc1701.py
@@ -33,7 +33,7 @@ class UC1701:
self.mcu.add_config_object(self)
self.glyph_buffer = []
self.spi_xfer_cmd = self.set_pin_cmd = None
- self.vram = ([bytearray(128) for i in range(8)],
+ self.vram = ([bytearray(128) for i in range(8)],
[bytearray('~'*128) for i in range(8)])
def build_config(self):
self.mcu.add_config_cmd(
@@ -68,7 +68,7 @@ class UC1701:
0x81, # Set Electronic Volume
0x28, # Electronic volume value (40)
0xAC, # Set static indicator off
- 0x00, # NOP
+ 0x00, # NOP
0xA6, # Disable Inverse
0xAF] # Set display enable
self.send(init_cmds)
@@ -122,7 +122,7 @@ class UC1701:
self.glyph_buffer.append((glyph_id, data))
self.glyph_buffer.sort(key=lambda x: x[0])
def write_glyph(self, x, y, glyph_id):
- pix_x = x*8
+ pix_x = x*8
pix_y = y*16
data = self.glyph_buffer[glyph_id][1]
for bits in data:
@@ -171,4 +171,4 @@ class UC1701:
def clear(self):
zeros = bytearray(128)
for page in self.vram[self.CURRENT_BUF]:
- page[:] = zeros \ No newline at end of file
+ page[:] = zeros
diff --git a/src/generic/usb_cdc.c b/src/generic/usb_cdc.c
index ab1869f8..04b02da0 100644
--- a/src/generic/usb_cdc.c
+++ b/src/generic/usb_cdc.c
@@ -197,10 +197,10 @@ static const struct config_s {
.bLength = sizeof(cdc_config_descriptor.config),
.bDescriptorType = USB_DT_CONFIG,
.wTotalLength = cpu_to_le16(sizeof(cdc_config_descriptor)),
- .bNumInterfaces = 2,
- .bConfigurationValue = 1,
- .bmAttributes = 0xC0,
- .bMaxPower = 50,
+ .bNumInterfaces = 2,
+ .bConfigurationValue = 1,
+ .bmAttributes = 0xC0,
+ .bMaxPower = 50,
},
.iface0 = {
.bLength = sizeof(cdc_config_descriptor.iface0),