Hi ...
I recently downloaded the newest version of the code from github. When I try to compile and upload the code to the device, I'm getting this error:
"error: 'i2c_ack_type_t' was not declared in this scope"
Does anyone know what is the problem?
I had no problem with compiling and uploading previous versions of code (in ATOM environment using platformio-ide).
Updated code for Freematics ONE+ and compile errors
-
- Posts: 6
- Joined: Wed Jan 03, 2018 8:41 am
Re: Updated code for Freematics ONE+ and compile errors
Me too,
I have it under /Users/<username>/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/driver/driver/i2c.h
and it seemed that the build process was not taking it into consideration
I tried to add
lib_extra_dirs = ../../libraries, /Users/virgilio/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/driver/
but I also found that, in platformio, under libraries there was an update for the ESP32 firmware
after updating it compiles
also lib_etra_dirs seem to be not needed
I don't know if this helps, if you find a reason for this behaviour please share
Virgilio
I have it under /Users/<username>/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/driver/driver/i2c.h
and it seemed that the build process was not taking it into consideration
I tried to add
lib_extra_dirs = ../../libraries, /Users/virgilio/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/driver/
but I also found that, in platformio, under libraries there was an update for the ESP32 firmware
after updating it compiles
also lib_etra_dirs seem to be not needed
I don't know if this helps, if you find a reason for this behaviour please share
Virgilio