This fork of the MBED Library allows you to use counters on the external counter pins (15/16 for Timer 3, 29/30 for Timer 2) by switching internal timing functions in MBED to utilize Timer 0
Fork of mbed-src by
Diff: cpp/FileSystemLike.cpp
- Revision:
- 1:62685faffa05
- Parent:
- 0:fd0d7bdfcdc2
- Child:
- 2:143cac498751
--- a/cpp/FileSystemLike.cpp Tue Nov 20 17:24:08 2012 +0000 +++ b/cpp/FileSystemLike.cpp Thu Nov 29 15:41:14 2012 +0000 @@ -131,16 +131,16 @@ file_name = file_system; int len = 0; while (true) { - char c = *file_name++; + char c = *file_name; if (c == '/') { // end of object name - /* file now points to one char after the '/' */ + file_name++; // point to one char after the '/' break; } if (c == 0) { // end of object name, with no filename - file_name = NULL; break; } len++; + file_name++; } fs = FileSystemLike::lookup(file_system, len); @@ -154,9 +154,4 @@ return fs; } -FileSystemLike* FilePath::getFileSystem(const char* path) { - FilePath f(path); - return f.fs; -} - } // namespace mbed