Skip to content

Commit

Permalink
Merge pull request #8 from lboue/MX10
Browse files Browse the repository at this point in the history
Add support for MX10 printer
  • Loading branch information
TheNitek authored Mar 16, 2024
2 parents 798c4af + 0dec455 commit a7f1316
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/CatGFX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ 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");
for (int i = 4; i < this->NAME_ARRAY_SIZE; i ++)
strcpy(this->printerNames[4], "MX10");
for (int i = 5; i < this->NAME_ARRAY_SIZE; i ++)
strcpy(this->printerNames[i], "");
}
else if (this->NAME_ARRAY_SIZE >= 1)
Expand Down

0 comments on commit a7f1316

Please sign in to comment.