Thermal_Printer
Thermal_Printer copied to clipboard
Error when compiling example from latest source ?
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.
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)