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.
Diff: DISCOF469SerialLCD.cpp
- Revision:
- 4:df0201a66e39
- Parent:
- 0:3f62b3c0ec9a
diff -r 33ee80658224 -r df0201a66e39 DISCOF469SerialLCD.cpp
--- a/DISCOF469SerialLCD.cpp Sun Feb 18 19:56:53 2018 +0000
+++ b/DISCOF469SerialLCD.cpp Sun Feb 18 20:21:55 2018 +0000
@@ -141,20 +141,20 @@
else if(strcmp(cmd, "-CS")==0) // ---------- Touches return
{
- sscanf(mRxMsg, "%s %u", cmd, &data8_0); //cmd,numTouches
+ sscanf(mRxMsg, "%s %hhu", cmd, &data8_0); //cmd, numTouches
mTouches = data8_0;
}
else if(strcmp(cmd, "-T1")==0) // ---------- GetTouch1 return
{
- sscanf(mRxMsg, "%s %u %u", cmd, &data16_0, &data16_1); //cmd,x,y
+ sscanf(mRxMsg, "%s %hu %hu", cmd, &data16_0, &data16_1); //cmd,x,y
mTouch1X = data16_0;
mTouch1Y = data16_1;
}
else if(strcmp(cmd, "-T2")==0) // ---------- GetTouch2 return
{
- sscanf(mRxMsg, "%s %u %u", cmd, &data16_0, &data16_1); //cmd,x,y
+ sscanf(mRxMsg, "%s %hu %hu", cmd, &data16_0, &data16_1); //cmd,x,y
mTouch2X = data16_0;
mTouch2Y = data16_1;
}