mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-27 06:54:15 +01:00
Cart_Reader.ino: Move print_FatalError prototypes earlier in the file
So they can be used in more places within that file.
This commit is contained in:
parent
4a2a2c69d2
commit
25b615f77c
@ -298,6 +298,9 @@ bool i2c_found;
|
||||
#include "FreqCount.h"
|
||||
#endif
|
||||
|
||||
void print_FatalError(const __FlashStringHelper* errorMessage) __attribute__ ((noreturn));
|
||||
void print_FatalError(byte errorMessage) __attribute__ ((noreturn));
|
||||
|
||||
/******************************************
|
||||
Common Strings
|
||||
*****************************************/
|
||||
@ -2004,7 +2007,6 @@ void print_Error(byte errorMessage, boolean forceReset) {
|
||||
}
|
||||
}
|
||||
|
||||
void print_FatalError(const __FlashStringHelper* errorMessage) __attribute__ ((noreturn));
|
||||
void print_FatalError(const __FlashStringHelper* errorMessage) {
|
||||
print_Error(errorMessage, true);
|
||||
// Redundant as print_Error already calls it, but makes gcc understand that
|
||||
@ -2012,7 +2014,6 @@ void print_FatalError(const __FlashStringHelper* errorMessage) {
|
||||
resetArduino();
|
||||
}
|
||||
|
||||
void print_FatalError(byte errorMessage) __attribute__ ((noreturn));
|
||||
void print_FatalError(byte errorMessage){
|
||||
print_Error(errorMessage, true);
|
||||
// Redundant as print_Error already calls it, but makes gcc understand that
|
||||
|
Loading…
Reference in New Issue
Block a user