Workaround for AVR-specific compiler issue (#759)

This commit is contained in:
Olivier
2017-02-01 20:45:42 +01:00
committed by Embedded Innovation
parent b69bba485f
commit 4380d6618f
3 changed files with 17 additions and 4 deletions
+9 -3
View File
@@ -40,7 +40,13 @@ void setIndication( const indication_t ind )
ledsBlinkErr(ind-INDICATION_ERR_START);
}
#endif
if (indication) {
indication(ind);
}
indication(ind);
}
#if !defined(MY_INDICATION_HANDLER)
void indication(indication_t)
{
// empty function, resolves AVR-specific GCC optimization bug (<5.5) if handler not used
// see here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77326
}
#endif