Closed Juppit closed 6 years ago
Which Arduino IDE Version do you use, which ESP8266 Core Version?
@madmartin
I use Arduino 1.9.0 beta and the latest git version.
The problem exists currently with Arduino 1.9.0 beta, not in 1.8.5.
I use this version, because 1.8.5 allways recompiles all libraries, message:
arduino build options changed rebuilding all
.
I wait one minute to rebuild this sketch with 1.8.5, but only 10 seconds with 1.9.0.
Furthermore, its seems to me, with arduino you never know, which bugs will be fixed in the next version or which regressions occur again.
Back to the problem, I am in favor of a change, as you know:
Be conservative in what you send, be liberal in what you accept.
After some research, I discovered that default values for function parameters is a non-standard feature, so I agree to remove its usage here. Thanks for reporting!
On Windows, I get error messages from the Arduino IDE:
error: Default argument for parameter 1 of 'void devcnt_handler (boolean do_increment = true)
Also by prototyping I do not succeed in solving this problem. For the few occurrences, it makes sense to work without this default value.