aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--klippy/extras/display/st7920.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/display/st7920.py b/klippy/extras/display/st7920.py
index bb0d8762..9cfcdb16 100644
--- a/klippy/extras/display/st7920.py
+++ b/klippy/extras/display/st7920.py
@@ -76,8 +76,8 @@ class ST7920:
if new_data == old_data:
continue
# Find the position of all changed bytes in this framebuffer
- diffs = [[i, 1] for i, (nd, od) in enumerate(zip(new_data, old_data))
- if nd != od]
+ diffs = [[i, 1] for i, (n, o) in enumerate(zip(new_data, old_data))
+ if n != o]
# Batch together changes that are close to each other
for i in range(len(diffs)-2, -1, -1):
pos, count = diffs[i]