stevemarple / IniFile

Arduino library to parse ini files.
GNU Lesser General Public License v2.1
87 stars 45 forks source link

parse missing key error occur #18

Closed zhuxiaoyou2011qp closed 5 years ago

zhuxiaoyou2011qp commented 5 years ago

A.ini [A] a=1 [B] b=1

then we getValue("A","b",buffer,len) == true

in src/IniFile.cpp line 140: if (getValue(section, key, buffer, len) < 0) need changed to: if (getValue(section, key, buffer, len) == false),because line 92: bool IniFile::getValue(const char section, const char key,...) returns bool,but not int.same as in line 160,170,190,214,248

stevemarple commented 5 years ago

Fixed in v1.0.4.