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
I use this library with ESP32 Devkit v1
I noticed that if I call EasyBuzzer.singleBeep(720, 600); for example, it will set beep duration to 600.
but then if I call EasyBuzzer.beep(420, 2); this should beep twice, but because I called the singleBeep before with duration of 600 now when I call beep it will also have duration of 600.
I don't know if its a bug or by design but I don't think its the correct/expected behavior...
Steps to reproduce:
run beep function first - it should play for the default duration (100)
run singleBeep function and set the duration parameter
run beep function again - now it will have the duration that you set when called singleBeep
I use this library with ESP32 Devkit v1
I noticed that if I call
EasyBuzzer.singleBeep(720, 600);
for example, it will set beep duration to 600.but then if I call
EasyBuzzer.beep(420, 2);
this should beep twice, but because I called thesingleBeep
before with duration of 600 now when I callbeep
it will also have duration of 600.I don't know if its a bug or by design but I don't think its the correct/expected behavior...
Steps to reproduce:
beep
function first - it should play for the default duration (100)singleBeep
function and set theduration
parameterbeep
function again - now it will have the duration that you set when calledsingleBeep
To quickly "fix" it I added this code:
inside the
if
statement atEasyBuzzer/src/EasyBuzzer.cpp
Line 123 in b0143dd
I don't think its the best fix but it worked...
The text was updated successfully, but these errors were encountered: