Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: AS-289R2_Hello-World AS-289R2_Hello-World-mbed-OS hybrid_image_as289r2 microbit_AS-289R2 ... more
Diff: AS289R2.cpp
- Revision:
- 2:ce25d0949cbd
- Parent:
- 1:ee311b8f969b
- Child:
- 4:a2e0373a9cd1
diff -r ee311b8f969b -r ce25d0949cbd AS289R2.cpp
--- 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;
AS-289R2 Thermal Printer Shield