bitbank2 / Thermal_Printer

Arduino library to draw text and graphics on BLE thermal printers
Apache License 2.0
367 stars 54 forks source link

Error when compiling example from latest source ? #18

Open raptyk opened 2 years ago

raptyk commented 2 years ago

Thermal_printer_demo:

C:\Users\patry\Documents\Arduino\libraries\Thermal_Printer-master\src\Thermal_Printer.cpp:60:178: error: 'PRINTER_PHOMEMO' was not declared in this scope const uint8_t ucBLETypes[] = {PRINTER_MTP2, PRINTER_MTP3, PRINTER_MTP3, PRINTER_CAT, PRINTER_CAT, PRINTER_CAT, PRINTER_CAT, PRINTER_CAT, PRINTER_PERIPAGEPLUS, PRINTER_PERIPAGE, PRINTER_PHOMEMO}; ^ exit status 1 Error compiling for board ESP32 Dev Module.

screen

Update: There is a typo in that PRINTER_PHOMEMO name:

PRINTER_PHOMEMO vs PRINTER_FOMEMO

else if (ucPrinterType == PRINTER_FOMEMO || ucPrinterType == PRINTER_PERIPAGE || ucPrinterType == PRINTER_PERIPAGEPLUS)