11.ArduinoISP/ArduinoISP.ino: with 'void pulse(int pin, int times)', it typically pulses times
+ 1, which is unexpected
#22
Labels
type: imperfection
Perceived defect in any part of project
The following code typically loops one more time than
times
e.g. with 0, it loops once, with 1, it loops twice.ADDITIONAL SUGGESTION#1: Decide whether it should loop 0 times or once, when
times
is set to 0; looping almost forever is probably not desired.ADDITIONAL SUGGESTION#2: Add optional additional parameter
int duration
that defaults toPTIME
or 30.The text was updated successfully, but these errors were encountered: