Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correcting designator order in main.c
The designator order in main.c does not match the one defined in ws2811.h. This leads to problems when using the code with c++ compilers. * clang 13.0.0-2 emits warnings and corrects the initializations * GCC 11.2.0 and 10.2.1 will emit an error (see issue #429) I corrected the initialization order here and the compilation now works with the afromentioned complainers without issues. Tested on Ubuntu 21.10 (clang 13.0.0-2/gcc 11.2.0) and Raspberry Pi 4 Release 11 bullseye (GCC 10.2.1)
- Loading branch information