aboutsummaryrefslogtreecommitdiffhomepage
path: root/Cart_Reader
diff options
context:
space:
mode:
authorVincent Pelletier <[email protected]>2022-11-05 00:37:44 +0000
committerVincent Pelletier <[email protected]>2022-11-05 00:43:24 +0000
commit4d3cdd900489b8092c888b7f3e98cc7e72400b97 (patch)
treec5e95ca780084222304903f33c4f133d3f6a242c /Cart_Reader
parent4b9c6430f9fef9969d08afda8aac426e05182016 (diff)
downloadcartreader-4d3cdd900489b8092c888b7f3e98cc7e72400b97.tar.gz
cartreader-4d3cdd900489b8092c888b7f3e98cc7e72400b97.zip
NES.ino: Always set browseDatabase
Fixes a compiler warning.
Diffstat (limited to 'Cart_Reader')
-rw-r--r--Cart_Reader/NES.ino4
1 files changed, 3 insertions, 1 deletions
diff --git a/Cart_Reader/NES.ino b/Cart_Reader/NES.ino
index dfcde7c..fabd265 100644
--- a/Cart_Reader/NES.ino
+++ b/Cart_Reader/NES.ino
@@ -562,7 +562,9 @@ void getMapping() {
break;
}
}
- if (!database.available()) {
+ if (database.available()) {
+ browseDatabase = false;
+ } else {
// File searched until end but nothing found
println_Msg(F(""));
println_Msg(F("CRC not found in database"));