From 60231887b9f88bfdc84286143a1dad55cd291e5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Sat, 16 Mar 2024 18:29:53 +0100 Subject: [PATCH 1/2] Update CatGFX.cpp to support MX10 printer --- src/CatGFX.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/CatGFX.cpp b/src/CatGFX.cpp index d6ed458..6569191 100644 --- a/src/CatGFX.cpp +++ b/src/CatGFX.cpp @@ -6,12 +6,13 @@ CatPrinter::CatPrinter(uint16_t h): SERVICE_UUID("0000AE30-0000-1000-8000-00805F9B34FB"), CHAR_UUID_DATA("0000AE01-0000-1000-8000-00805F9B34FB") { - if (this->NAME_ARRAY_SIZE >= 5) + if (this->NAME_ARRAY_SIZE >= 6) { strcpy(this->printerNames[0], "GT01"); strcpy(this->printerNames[1], "GB01"); strcpy(this->printerNames[2], "GB02"); strcpy(this->printerNames[3], "MX09"); + strcpy(this->printerNames[4], "MX10"); for (int i = 4; i < this->NAME_ARRAY_SIZE; i ++) strcpy(this->printerNames[i], ""); } From 0dec4559133fc804b97916060e604da066b2a357 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Sat, 16 Mar 2024 20:40:30 +0100 Subject: [PATCH 2/2] Update CatGFX.cpp --- src/CatGFX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CatGFX.cpp b/src/CatGFX.cpp index 6569191..5bfec4f 100644 --- a/src/CatGFX.cpp +++ b/src/CatGFX.cpp @@ -13,7 +13,7 @@ CatPrinter::CatPrinter(uint16_t h): strcpy(this->printerNames[2], "GB02"); strcpy(this->printerNames[3], "MX09"); strcpy(this->printerNames[4], "MX10"); - for (int i = 4; i < this->NAME_ARRAY_SIZE; i ++) + for (int i = 5; i < this->NAME_ARRAY_SIZE; i ++) strcpy(this->printerNames[i], ""); } else if (this->NAME_ARRAY_SIZE >= 1)