Yen-Yu Chen
Yen-Yu Chen
Going in infinite loop when ini file in a special condition Before ``` if (isCommentChar(*cp)) { // return (err == errorEndOfFile ? errorSectionNotFound : errorNoError); if (err == errorSectionNotFound) {...
sample.ino ``` #include #include #include IniFile Config("/config.ini"); void setup() { Serial.begin(9600); if (!SD.begin(4)) { Serial.println(F("Card failed, or not present")); while (1); } char buffer[128]; if (!Config.open() || !Config.validate(buffer, sizeof(buffer))) {...
``` bool IniFile::findSection(const char* section, char* buffer, size_t len, IniFileState &state) const { if (section == NULL) { _error = errorSectionNotFound; return true; } error_t err = IniFile::readLine(_file, buffer, len,...
Sorry for my English >_< ``` if (err != errorNoError && err != errorEndOfFile) { // Signal to caller to stop looking and any error value _error = err; return...