From b0c5d15963b8e75634b0f38cd771512eb3b328e2 Mon Sep 17 00:00:00 2001 From: Larry Bernstone Date: Thu, 6 Jun 2024 09:25:31 -1000 Subject: [PATCH] feat(sdmmc): fixed printf mismatches and missing callback --- libraries/SD_MMC/examples/SD2USBMSC/SD2USBMSC.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/SD_MMC/examples/SD2USBMSC/SD2USBMSC.ino b/libraries/SD_MMC/examples/SD2USBMSC/SD2USBMSC.ino index 18fbdb22ed5..7c600a148aa 100644 --- a/libraries/SD_MMC/examples/SD2USBMSC/SD2USBMSC.ino +++ b/libraries/SD_MMC/examples/SD2USBMSC/SD2USBMSC.ino @@ -83,9 +83,10 @@ void setup(){ Serial.println("Initializing USB"); USB.begin(); + USB.onEvent(usbEventCallback); Serial.printf("Card Size: %lluMB\n", SD_MMC.totalBytes()/1024/1024); - Serial.printf("Sector: %lu\tCount: %lu\n", SD_MMC.sectorSize(), SD_MMC.numSectors()); + Serial.printf("Sector: %d\tCount: %d\n", SD_MMC.sectorSize(), SD_MMC.numSectors()); } void loop(){