From 25b615f77cc5c4e7db22bc7e649c320593176566 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier Date: Sun, 30 Oct 2022 00:33:47 +0000 Subject: [PATCH] Cart_Reader.ino: Move print_FatalError prototypes earlier in the file So they can be used in more places within that file. --- Cart_Reader/Cart_Reader.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cart_Reader/Cart_Reader.ino b/Cart_Reader/Cart_Reader.ino index ee13c96..5cd0207 100644 --- a/Cart_Reader/Cart_Reader.ino +++ b/Cart_Reader/Cart_Reader.ino @@ -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