USB Host Driver with Socket Modem support. Works with revision 323 of mbed-src but broken with any later version.
Dependencies: FATFileSystem
Fork of F401RE-USBHost by
Diff: USBHost/myvector.h
- Revision:
- 16:981c3104f6c0
- Parent:
- 10:40c7f6788902
--- a/USBHost/myvector.h Fri Jun 13 01:52:44 2014 +0000 +++ b/USBHost/myvector.h Mon Jun 23 20:30:04 2014 +0900 @@ -7,6 +7,11 @@ m_size = 0; m_buf = NULL; } + ~myvector() { + if (m_buf) { + delete[] m_buf; + } + } void push_back(T v) { T* new_buf = new T[m_size+1]; if (m_size > 0) {