Simple config file class with added support for floats
Fork of ConfigFile by
Revision 7:0a8c1d05611b, committed 2015-01-10
- Comitter:
- jaerts
- Date:
- Sat Jan 10 14:04:59 2015 +0000
- Parent:
- 6:78404e968c3e
- Commit message:
- Fix bug that prevents reading values with length=1
Changed in this revision
| ConfigFile.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/ConfigFile.cpp Mon Dec 29 10:01:31 2014 +0000
+++ b/ConfigFile.cpp Sat Jan 10 14:04:59 2015 +0000
@@ -103,7 +103,7 @@
break;
}
}
- if ( s == 99 && m > 1) // key found, and value assigned
+ if ( s == 99 && m >= 1) // key found, and value assigned
{
*value = 0; // terminate string
return true;
