aboutsummaryrefslogtreecommitdiffhomepage
path: root/Cart_Reader/ARC.ino
diff options
context:
space:
mode:
authorsmesgr9000 <smesgr9000>2024-04-22 18:51:01 +0200
committersmesgr9000 <smesgr9000>2024-04-22 18:51:01 +0200
commite7e0da80b0c99cbc92f6fd15d1bf57f7a8bd0f39 (patch)
treef3b9910ae06d5a991ec317e3490f844b0345dcb2 /Cart_Reader/ARC.ino
parent5d0ae986c9b70cf870f8dd4c34fc60fb7648817a (diff)
downloadcartreader-e7e0da80b0c99cbc92f6fd15d1bf57f7a8bd0f39.tar.gz
cartreader-e7e0da80b0c99cbc92f6fd15d1bf57f7a8bd0f39.zip
remove some duplicate printing code and declare more global text strings
Diffstat (limited to 'Cart_Reader/ARC.ino')
-rw-r--r--Cart_Reader/ARC.ino14
1 files changed, 7 insertions, 7 deletions
diff --git a/Cart_Reader/ARC.ino b/Cart_Reader/ARC.ino
index c6aebd4..a38a8b3 100644
--- a/Cart_Reader/ARC.ino
+++ b/Cart_Reader/ARC.ino
@@ -318,7 +318,7 @@ void checkStatus_ARC() {
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
display_Clear();
println_Msg(F("ARCADIA 2001 READER"));
- println_Msg(F("CURRENT SETTINGS"));
+ println_Msg(FS(FSTRING_CURRENT_SETTINGS));
println_Msg(FS(FSTRING_EMPTY));
print_Msg(F("ROM SIZE: "));
print_Msg(ARC[arcsize]);
@@ -501,10 +501,10 @@ bool getCartListInfo_ARC() {
}
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
println_Msg(FS(FSTRING_EMPTY));
- println_Msg(F("END OF FILE"));
+ println_Msg(FS(FSTRING_END_OF_FILE));
display_Update();
#else
- Serial.println(F("END OF FILE"));
+ Serial.println(FS(FSTRING_END_OF_FILE));
#endif
return false;
@@ -514,7 +514,7 @@ void checkCSV_ARC() {
if (getCartListInfo_ARC()) {
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
display_Clear();
- println_Msg(F("CART SELECTED"));
+ println_Msg(FS(FSTRING_CART_SELECTED));
println_Msg(FS(FSTRING_EMPTY));
println_Msg(arcgame);
display_Update();
@@ -525,7 +525,7 @@ void checkCSV_ARC() {
display_Update();
#else
Serial.println(FS(FSTRING_EMPTY));
- Serial.println(F("CART SELECTED"));
+ Serial.println(FS(FSTRING_CART_SELECTED));
Serial.println(arcgame);
// Display Settings
Serial.print(F("CODE: R"));
@@ -535,10 +535,10 @@ void checkCSV_ARC() {
} else {
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
display.setCursor(0, 56);
- println_Msg(F("NO SELECTION"));
+ println_Msg(FS(FSTRING_NO_SELECTION));
display_Update();
#else
- Serial.println(F("NO SELECTION"));
+ Serial.println(FS(FSTRING_NO_SELECTION));
#endif
}
}