AS-289R2 Thermal Printer shield control library

Dependents:   AS-289R2_Hello-World AS-289R2_Hello-World-mbed-OS hybrid_image_as289r2 microbit_AS-289R2 ... more

Revision:
2:ce25d0949cbd
Parent:
1:ee311b8f969b
Child:
4:a2e0373a9cd1
--- a/AS289R2.cpp	Sun Sep 04 03:09:27 2016 +0000
+++ b/AS289R2.cpp	Mon Sep 19 13:46:03 2016 +0000
@@ -107,7 +107,7 @@
     _serial.putc(font);
 }
 
-void AS289R2::printQRCode(uint32_t err, char* param)
+void AS289R2::printQRCode(uint32_t err, const char* param)
 {
     uint32_t len = strlen(param);
     char buf[4] = {0x1D, 0x78};
@@ -121,7 +121,7 @@
     }
 }
 
-void AS289R2::printBarCode(uint32_t code, char* param)
+void AS289R2::printBarCode(uint32_t code, const char* param)
 {
     char buf[3] = {0x1D, 0x6B};
     buf[2] = code;
@@ -134,7 +134,7 @@
     _serial.putc('\0');
 }
 
-void AS289R2::printBitmapImage(uint32_t mode, uint16_t lines, char * image)
+void AS289R2::printBitmapImage(uint32_t mode, uint16_t lines, const char * image)
 {
     char buf[3] = {0x1C, 0x2A};
     buf[2] = mode;