Skip to content

Commit 698b625

Browse files
Laurence BankLaurence Bank
authored andcommitted
Fixed typo preventing Nano33 BLE from working
1 parent 5f3c141 commit 698b625

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

examples/Thermal_Printer_Demo/Thermal_Printer_Demo.ino

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -336,14 +336,14 @@ void setup() {
336336
Serial.println((char *)"Preparing image buffer...");
337337
tpSetBackBuffer(ucBuf, WIDTH, HEIGHT);
338338
tpFill(0);
339-
// for (i=0; i<WIDTH; i += 32)
340-
// {
341-
// tpDrawLine(i, 0, WIDTH-1-i, HEIGHT-1, 1);
342-
// }
343-
// for (i=0; i<HEIGHT; i+= 8)
344-
// {
345-
// tpDrawLine(WIDTH-1, i, 0, HEIGHT-1-i, 1);
346-
// }
339+
for (i=0; i<WIDTH; i += 32)
340+
{
341+
tpDrawLine(i, 0, WIDTH-1-i, HEIGHT-1, 1);
342+
}
343+
for (i=0; i<HEIGHT; i+= 8)
344+
{
345+
tpDrawLine(WIDTH-1, i, 0, HEIGHT-1-i, 1);
346+
}
347347
tpDrawText(0,0,(char *)"BitBank Thermal Printer", FONT_LARGE, 0);
348348
i = tpLoadBMP((uint8_t *)logo_bmp, 0, 82, 64);
349349
if (i != 0)

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Thermal Printer Library
2-
version=1.1.1
2+
version=1.1.2
33
author=Larry Bank
44
maintainer=Larry Bank <[email protected]>
55
sentence=Bluetooth Low Energy Thermal Printer Library

src/Thermal_Printer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ int iLen = strlen(szName);
597597
}
598598
}
599599
#endif
600-
#ifdef ARDUINO_ARDUNIO_NANO33BLE // Arduino API
600+
#ifdef ARDUINO_ARDUINO_NANO33BLE // Arduino API
601601
// initialize the BLE hardware
602602
BLE.begin();
603603
// start scanning for the printer service UUID

0 commit comments

Comments
 (0)