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