Wenkai Gong / libmDot-mbed5-UNSWDot
Revision:
72:b1e07ec1c30d
Parent:
69:e22889c7eaa9
diff -r ae3afc16ec3e -r b1e07ec1c30d MTS-Lora/vendor/multitech/MTS-Utils/MTSCircularBuffer.h
--- a/MTS-Lora/vendor/multitech/MTS-Utils/MTSCircularBuffer.h	Fri Nov 08 09:34:58 2019 -0600
+++ b/MTS-Lora/vendor/multitech/MTS-Utils/MTSCircularBuffer.h	Mon Feb 17 14:43:04 2020 -0600
@@ -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