Buffer from Sam Grove changed to have static instead of dynamic memory allocation. Fixed size to 256B.

Dependents:   BufferedSerialStatic

Fork of Buffer by Sam Grove

Revision:
7:e80960adb2ad
Parent:
6:89564915f2a7
--- a/MyBuffer.cpp	Mon Mar 07 21:10:13 2016 +0000
+++ b/MyBuffer.cpp	Mon May 28 14:34:02 2018 +0000
@@ -24,10 +24,9 @@
 #include "MyBuffer.h"
 
 template <class T>
-MyBuffer<T>::MyBuffer(uint32_t size)
+MyBuffer<T>::MyBuffer()
 {
-    _buf = new T [size];
-    _size = size;
+    _size = MyBuffer::BUFFER_SIZE;
     clear();
     
     return;