Skip to content

Commit e66e9e4

Browse files
committed
Fixed esp32 breaking changes
1 parent 0e39e7e commit e66e9e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Thermal_Printer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ int tpConnect(const char *szMacAddress)
799799
if (Server_BLE_Address != NULL) {
800800
delete Server_BLE_Address;
801801
}
802-
Server_BLE_Address = new BLEAddress(std::string(szMacAddress));
802+
Server_BLE_Address = new BLEAddress(String(szMacAddress));
803803
#ifdef DEBUG_OUTPUT
804804
Serial.printf(" - Created client, connecting to %s\n", szMacAddress);
805805
#endif
@@ -1322,7 +1322,7 @@ uint8_t modelQR[] = {0x1d, 0x28, 0x6b, 0x04, 0x00, 0x31, 0x41, 0x32, 0x00};
13221322
// Hex 1D 28 6B 03 00 31 43 n
13231323
// n depends on the printer
13241324
// https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=141
1325-
uint8_t sizeQR[] = {0x1d, 0x28, 0x6b, 0x03, 0x00, 0x31, 0x43, iSize};
1325+
uint8_t sizeQR[] = {0x1d, 0x28, 0x6b, 0x03, 0x00, 0x31, 0x43, (uint8_t)iSize};
13261326

13271327
// Hex 1D 28 6B 03 00 31 45 n
13281328
// Set n for error correction [48 x30 -> 7%] [49 x31-> 15%] [50 x32 -> 25%] [51 x33 -> 30%]

0 commit comments

Comments
 (0)