“builtin_avr_delay_cycles expects a compile time integer constant”
I looked that up in avr_libc documentation for<util/delay.h> and found this:
"The implementation of _delay_ms() based on builtin_avr_delay_cycles() is not backward compatible with older implementations.”
Adding the macro DELAY_BACKWARD_COMPATIBLE fixed it.
“builtin_avr_delay_cycles expects a compile time integer constant” I looked that up in avr_libc documentation for<util/delay.h> and found this: "The implementation of _delay_ms() based on builtin_avr_delay_cycles() is not backward compatible with older implementations.”
Adding the macro DELAY_BACKWARD_COMPATIBLE fixed it.