summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-11-23 23:03:39 -0500
committerSolomon Peachy <pizza@shaftnet.org>2024-11-23 23:07:12 -0500
commit7df324b8195b4f16f1eb6678ac5c9c077ca9d389 (patch)
tree2941bc5cfbb9fdb254400f35fe85ed89ee9ced46
parentf24bae5baff55b6303289ecface9dc85157375ea (diff)
downloadrockbox-7df324b819.tar.gz
rockbox-7df324b819.zip
sdmmc: the tCardInfo.initialized field needs to be an integer, not bool
Some drivers (Notably the PP SD driver) uses negative values to indicate errors. Change-Id: I9dbb065cbe90a62cde8a1d89bf6b450f40721790
-rw-r--r--firmware/export/sdmmc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/export/sdmmc.h b/firmware/export/sdmmc.h
index f84a7b96fa..ed075f82a3 100644
--- a/firmware/export/sdmmc.h
+++ b/firmware/export/sdmmc.h
@@ -27,7 +27,7 @@
typedef struct
{
- bool initialized;
+ int initialized; /* 0, 1, or negative for errors */
unsigned long read_timeout; /* n * 8 clock cycles */
unsigned long write_timeout; /* n * 8 clock cycles */