evert-arias / EasyBuzzer

The Beep Library For Arduino
https://evert-arias.github.io/EasyBuzzer
MIT License
84 stars 22 forks source link

argument 'beeps' is considered as sixth position #21

Open umeshwalkar opened 2 years ago

umeshwalkar commented 2 years ago

Hi,

I noticed that in actual 'beep' functions , the 'beeps' argument is placed at fourth position but calling/passing it from other versions of 'beep' at sixth position.

void EasyBuzzerClass::beep(unsigned int frequency, unsigned int const onDuration, unsigned int const offDuration, byte const beeps, unsigned int const pauseDuration, unsigned int const sequences) at line 38 and 52

and

see the function

beep(frequency, mOnDuration, mOffDuration, 1, mPauseDuration, beeps, finishedCallbackFunction); at line 25 , 30, 35.

intended beeps count are not achieving.