--- a/coreCustom.cpp +++ b/coreCustom.cpp @@ -247,6 +247,8 @@ "mul __zero_reg__, __zero_reg__ \n" // 2 cycles "mul __zero_reg__, __zero_reg__ \n" // 2 cycles ); + // avr-gcc 7.3 compiles this loop faster than the original toolchain did: wait for the SPI transfer to finish + while (!(SPSR & _BV(SPIF))) { } } } --- a/Text.cpp +++ b/Text.cpp @@ -136,7 +136,7 @@ bool Text::DisplayTextOverTime( char const* text, int x, int y ) { - Text::DisplayTextOverTime( (char *) text, x, y ); + return Text::DisplayTextOverTime( (char *) text, x, y ); } bool Text::DisplayTextOverTimeClear( char* text, int x, int y )