Skip to content

Fix variable declaration bugs#1

Open
YeezB wants to merge 1 commit intoyuyouliang:masterfrom
YeezB:master
Open

Fix variable declaration bugs#1
YeezB wants to merge 1 commit intoyuyouliang:masterfrom
YeezB:master

Conversation

@YeezB
Copy link
Copy Markdown

@YeezB YeezB commented Jul 12, 2024

Software: Arduino IDE 1.8.19
Board: Arduino UNO

An error occurred when compiling the example, conversion from "int" to 'SAMPLE_FREQUENCY' can not be completed.
a939573d898eb03d3c2d83ce7438964

The source code defines SAMPLE_FREQUENCY as an enum type. In Arduino IDE 1.8.19 Arduino compiler it is not possible to convert the parameters in the enum type to the "int" type passed in as a parameter of the .ino main code.
eed974e819ebc647389a83a8c2512c1

Solution:
Change all enum types to int.
832a2badf81214e6c3043d59b0f1d77

The entire library directory has been changed to make it more logical, so that users of Arduino IDE V2 can download and include the .zip libraries directly.

The modified library passes compilation in both V1.8.19 and V2.3.2.

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

Successfully merging this pull request may close these issues.

1 participant