Skip to content

Commit b0c5d15

Browse files
committed
feat(sdmmc): fixed printf mismatches and missing callback
1 parent 08e8cdd commit b0c5d15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: libraries/SD_MMC/examples/SD2USBMSC/SD2USBMSC.ino

+2-1
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ void setup(){
8383
Serial.println("Initializing USB");
8484

8585
USB.begin();
86+
USB.onEvent(usbEventCallback);
8687

8788
Serial.printf("Card Size: %lluMB\n", SD_MMC.totalBytes()/1024/1024);
88-
Serial.printf("Sector: %lu\tCount: %lu\n", SD_MMC.sectorSize(), SD_MMC.numSectors());
89+
Serial.printf("Sector: %d\tCount: %d\n", SD_MMC.sectorSize(), SD_MMC.numSectors());
8990
}
9091

9192
void loop(){

0 commit comments

Comments
 (0)