Updated code for Freematics ONE+ and compile errors

Inquiry and support for Freematics products
Post Reply
ehsan.moradi
Posts: 6
Joined: Wed Jan 03, 2018 8:41 am

Updated code for Freematics ONE+ and compile errors

Post by ehsan.moradi »

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).
virgilio
Posts: 6
Joined: Fri Feb 23, 2018 11:29 pm

Re: Updated code for Freematics ONE+ and compile errors

Post by virgilio »

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
Post Reply