Skip to content

Commit 0ae093e

Browse files
Fix typos
1 parent 2a1ff7e commit 0ae093e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Adafruit_Thermal.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def printBarcode(self, text, type):
348348
super(Adafruit_Thermal, self).write(chr(n))
349349
for i in range(n):
350350
super(Adafruit_Thermal,
351-
self).write(text[n])
351+
self).write(text[i])
352352
else:
353353
# Older firmware: write string + NUL
354354
if self.writeToStdout:

printertest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
import gfx.adaqrcode as adaqrcode
6262
printer.printBitmap(adaqrcode.width, adaqrcode.height, adaqrcode.data)
6363
printer.println("Adafruit!")
64-
printer.feed(1)
64+
printer.feed(2)
6565

6666
printer.sleep() # Tell printer to sleep
6767
printer.wake() # Call wake() before printing again, even if reset

0 commit comments

Comments
 (0)