Thermal_Printer icon indicating copy to clipboard operation
Thermal_Printer copied to clipboard

Error when compiling example from latest source ?

Open raptyk opened this issue 3 years ago • 0 comments

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)

raptyk avatar Jan 19 '22 21:01 raptyk