We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8fee07 commit 1882ae3Copy full SHA for 1882ae3
sdmm.cpp
@@ -113,6 +113,8 @@ static DSTATUS Stat = STA_NOINIT;
113
114
static BYTE CardType;
115
116
+bool enabled = false;
117
+
118
static void xmit_mmc(
119
const BYTE *buff,
120
UINT bc)
@@ -281,9 +283,15 @@ DSTATUS disk_initialize(
281
283
282
284
CS_INIT();
285
CS_H();
- p = allocSPI();
- p->frequency(1000000);
286
- p->format(8, 0);
287
+ if(!enabled)
288
+ {
289
+ p = allocSPI();
290
+ p->frequency(10000);
291
+ p->format(8, 0);
292
+ enabled = true;
293
+ uBit.serial.send("Called!\n");
294
+ }
295
296
for (n = 10; n; n--)
297
{
0 commit comments