From 87eba43b49f50ea919d56618ee7541f7b9b51471 Mon Sep 17 00:00:00 2001 From: ChanneledDan Date: Sun, 10 Dec 2023 12:12:21 -0500 Subject: [PATCH] Update MyBLE.m to add supported X5 printer X5 printer is actually a PRINTER_CAT type printer. Connecting, printing, and paper feed all seem to work with no other changes necessary. --- Print2BLE/MyBLE.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Print2BLE/MyBLE.m b/Print2BLE/MyBLE.m index 6326854..cc0740b 100644 --- a/Print2BLE/MyBLE.m +++ b/Print2BLE/MyBLE.m @@ -51,8 +51,8 @@ - (void)dealloc - (uint8_t)findPrinter: (const char *) name { - const char *szTypes[] = {"MTP-II", "MTP-2", "MTP-3", "MTP-3F", "PeriPage+", "PeriPage_", "GT01", "GT02", "GB01", "GB02", "YHK-54A8", "MX06", "D110-E8", NULL}; - const uint8_t ucTypes[] = {PRINTER_MTP2, PRINTER_MTP2, PRINTER_MTP3, PRINTER_MTP3, PRINTER_PERIPAGEPLUS, PRINTER_PERIPAGE, PRINTER_CAT, PRINTER_CAT, PRINTER_CAT, PRINTER_CAT, PRINTER_PANDA, PRINTER_CAT, PRINTER_PANDA}; + const char *szTypes[] = {"MTP-II", "MTP-2", "MTP-3", "MTP-3F", "PeriPage+", "PeriPage_", "GT01", "GT02", "GB01", "GB02", "YHK-54A8", "MX06", "D110-E8", "X5", NULL}; + const uint8_t ucTypes[] = {PRINTER_MTP2, PRINTER_MTP2, PRINTER_MTP3, PRINTER_MTP3, PRINTER_PERIPAGEPLUS, PRINTER_PERIPAGE, PRINTER_CAT, PRINTER_CAT, PRINTER_CAT, PRINTER_CAT, PRINTER_PANDA, PRINTER_CAT, PRINTER_PANDA, PRINTER_CAT}; char szTemp[32]; uint8_t ucType = 255; // invalid int i=0;