Guillermo Stedile / RA8875

Dependencies:   GPS

Dependents:   SNOCC_V1 SNOCC_V2

Fork of RA8875 by SNOCC

Files at this revision

API Documentation at this revision

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) ) {