You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there! Thanks for you great work on this library! I am actually integrating in my Project, and came across an error. When downloading/importing the Library from the Arduino IDE , I can only choose from Version 1.0.0 (see screenshot). This throws an compiler error when trying to upload the example sketches, for example TCS34725_Modes_Full_Demo.ino
In file included from /home/user/.var/app/cc.arduino.IDE2/cache/.arduinoIDE-unsaved2025015-62-1py1do4.9o5qj/TCS34725_Modes_Full_Demo/TCS34725_Modes_Full_Demo.ino:1:
/home/user/Arduino/libraries/TCS34725AutoGain/TCS34725AutoGain.h: In member function 'uint8_t TCS34725_<WireType>::persistence()':
/home/user/Arduino/libraries/TCS34725AutoGain/TCS34725AutoGain.h:200:26: error: 'data' was not declared in this scope; did you mean 'std::data'?
200 | read8(Reg::PERS, data);
| ^~~~
| std::data
In file included from /home/user/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/xtensa-lx106-elf/include/c++/10.3.0/array:41,
from /home/user/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/xtensa-lx106-elf/include/c++/10.3.0/tuple:39,
from /home/user/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/xtensa-lx106-elf/include/c++/10.3.0/functional:54,
from /home/user/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/xtensa-lx106-elf/include/c++/10.3.0/pstl/glue_algorithm_defs.h:13,
from /home/user/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/xtensa-lx106-elf/include/c++/10.3.0/algorithm:74,
from /home/user/.arduino15/packages/esp8266/hardware/esp8266/3.1.2/cores/esp8266/Arduino.h:229,
from /home/user/.var/app/cc.arduino.IDE2/cache/arduino/sketches/C9EEC0893278BF300CF42F92B4DF48DD/sketch/TCS34725_Modes_Full_Demo.ino.cpp:1:
/home/user/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/xtensa-lx106-elf/include/c++/10.3.0/bits/range_access.h:319:5: note: 'std::data' declared here
319 | data(initializer_list<_Tp> __il) noexcept
| ^~~~
In file included from /home/user/.var/app/cc.arduino.IDE2/cache/.arduinoIDE-unsaved2025015-62-1py1do4.9o5qj/TCS34725_Modes_Full_Demo/TCS34725_Modes_Full_Demo.ino:1:
/home/user/Arduino/libraries/TCS34725AutoGain/TCS34725AutoGain.h:201:5: error: no return statement in function returning non-void [-Werror=return-type]
201 | }
| ^
cc1plus: some warnings being treated as errors
exit status 1
Compilation error: exit status 1
With the library directly checked out from github, saying it would be version 1.0.1, it compiles fine.
The text was updated successfully, but these errors were encountered:
Hi there! Thanks for you great work on this library! I am actually integrating in my Project, and came across an error. When downloading/importing the Library from the Arduino IDE , I can only choose from Version 1.0.0 (see screenshot). This throws an compiler error when trying to upload the example sketches, for example TCS34725_Modes_Full_Demo.ino
With the library directly checked out from github, saying it would be version 1.0.1, it compiles fine.
The text was updated successfully, but these errors were encountered: