Wenkai Gong / libmDot-mbed5-UNSWDot
Revision:
68:5f787643e7d7
Parent:
64:64982192a2af
Child:
69:e22889c7eaa9
diff -r a9d4d7cdeca1 -r 5f787643e7d7 MTS-Lora/vendor/multitech/MTS-Utils/MTSCircularBuffer.h
--- a/MTS-Lora/vendor/multitech/MTS-Utils/MTSCircularBuffer.h	Wed May 01 09:18:46 2019 -0500
+++ b/MTS-Lora/vendor/multitech/MTS-Utils/MTSCircularBuffer.h	Thu Aug 29 08:32:27 2019 -0500
@@ -82,7 +82,7 @@
     void attach(T *tptr, void( T::*mptr)(void), int threshold, RelationalOperator op) {
         _threshold = threshold;
         _op = op;
-        notify.attach(tptr, mptr);
+        notify = callback(tptr, mptr);
     }
 
     /** This method is used to setup a callback funtion when the buffer reaches