Workaround for AVR-specific compiler issue (#759)
This commit is contained in:
committed by
Embedded Innovation
parent
b69bba485f
commit
4380d6618f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user