Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: STM32_F103-C8T6basecanblink_led
Fork of mbed-dev by
Diff: drivers/FileBase.cpp
- Revision:
- 160:d5399cc887bb
- Parent:
- 149:156823d33999
diff -r 612c381a210f -r d5399cc887bb drivers/FileBase.cpp
--- a/drivers/FileBase.cpp Tue Feb 28 17:13:35 2017 +0000
+++ b/drivers/FileBase.cpp Tue Mar 14 16:40:56 2017 +0000
@@ -14,6 +14,7 @@
* limitations under the License.
*/
#include "drivers/FileBase.h"
+#include "drivers/FileLike.h"
namespace mbed {
@@ -49,6 +50,11 @@
}
}
_mutex->unlock();
+
+ if (getPathType() == FilePathType) {
+ extern void remove_filehandle(FileLike *file);
+ remove_filehandle(static_cast<FileLike*>(this));
+ }
}
FileBase *FileBase::lookup(const char *name, unsigned int len) {
