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.
Fork of RA8875 by
Revision 108:7415c405ee08, committed 2016-03-14
- Comitter:
- WiredHome
- Date:
- Mon Mar 14 02:20:40 2016 +0000
- Parent:
- 107:f9ccffcb84f1
- Child:
- 110:39f22e0c8de4
- Commit message:
- corrected a buffer overrun in the InsertionSort function of RA8875_Touch.cpp. Thanks to Michael Dinning for reporting it.
Changed in this revision
| RA8875.h | Show annotated file Show diff for this revision Revisions of this file |
| RA8875_Touch.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/RA8875.h Sat Mar 05 16:20:11 2016 +0000
+++ b/RA8875.h Mon Mar 14 02:20:40 2016 +0000
@@ -1983,7 +1983,7 @@
template <class T>
void AttachPrintHandler(T *object, RetCode_t (T::*method)(void)) {
obj_callback = (FPointerDummy *)object;
- method_callback = (uint32_t (FPointerDummy::*)(uint32_t))method;
+ method_callback = (uint32_t (FPointerDummy::*)(uint32_t, uint8_t *, uint16_t))method;
}
/// This method captures the specified area as a 24-bit bitmap file,
--- a/RA8875_Touch.cpp Sat Mar 05 16:20:11 2016 +0000
+++ b/RA8875_Touch.cpp Mon Mar 14 02:20:40 2016 +0000
@@ -227,7 +227,7 @@
int i, j;
int temp;
- for(i = 1; i <= bufsize; i++) {
+ for(i = 1; i < bufsize; i++) {
temp = buf[i];
j = i;
while( j && (buf[j-1] > temp) ) {
