I had the following error when compiling my project, I am not using delay.h in any of my project files it is only used by USBAPI.h. when I roll back to 2.2.2 everything works.
After upgrading I get the following:
Warning: platform.txt from core 'MightyCore' contains deprecated compiler.path={runtime.tools.avr-gcc.path}/bin/, automatically converted to compiler.path=/usr/bin/. Consider upgrading this core.
/usr/lib/avr/include/util/delay.h: In function ‘void _delay_ms(double)’:
:0:8: error: ‘build’ was not declared in this scope
In file included from /home/david/.arduino15/packages/MightyCore/hardware/avr/3.0.1/cores/MCUdude_corefiles/USBAPI.h:27:0,
from /home/david/.arduino15/packages/MightyCore/hardware/avr/3.0.1/cores/MCUdude_corefiles/Arduino.h:366,
from sketch/HB63C09M.ino.cpp:1:
/usr/lib/avr/include/util/delay.h:174:21: error: invalid operands of types ‘void’ and ‘double’ to binary ‘operator/’
__tmp = ((F_CPU) / 1e3) * __ms;
^
/usr/lib/avr/include/util/delay.h: In function ‘void _delay_us(double)’:
:0:8: error: ‘build’ was not declared in this scope
In file included from /home/david/.arduino15/packages/MightyCore/hardware/avr/3.0.1/cores/MCUdude_corefiles/USBAPI.h:27:0,
from /home/david/.arduino15/packages/MightyCore/hardware/avr/3.0.1/cores/MCUdude_corefiles/Arduino.h:366,
from sketch/HB63C09M.ino.cpp:1:
/usr/lib/avr/include/util/delay.h:263:21: error: invalid operands of types ‘void’ and ‘double’ to binary ‘operator/’
__tmp = ((F_CPU) / 1e6) * __us;
^
exit status 1
Error compiling for board ATmega32.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I had the following error when compiling my project, I am not using delay.h in any of my project files it is only used by USBAPI.h. when I roll back to 2.2.2 everything works.
After upgrading I get the following:
Warning: platform.txt from core 'MightyCore' contains deprecated compiler.path={runtime.tools.avr-gcc.path}/bin/, automatically converted to compiler.path=/usr/bin/. Consider upgrading this core. /usr/lib/avr/include/util/delay.h: In function ‘void _delay_ms(double)’: