stevemarple / IniFile

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

Building on ESP8266 via PlatformIO resulted in error #33

Open byteinsight opened 2 years ago

byteinsight commented 2 years ago

I installed iniFile via PlatformIO (V1.3) for my ESP8266 project. Building resulted in the following error at line 389:

error invalid conversion from char to uint8 t aka unsigned char

_line 389 = sizet bytesRead = file.read(buffer, len);

but adding an OR that included the ESP8266 define at line 386 seems to have fixed it.

_line 386 = #if (defined(ARDUINO_ARCH_ESP32) || defined(ESP8266)) && !defined(PREFER_SDFATLIBRARY)