Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.0.1 of library not available in Arduino Library search #2

Open
DeltaLima opened this issue Jan 15, 2025 · 0 comments
Open

Comments

@DeltaLima
Copy link

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

Bildschirmfoto vom 2025-01-15 14-27-42

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant