Skip to content

Commit befcb49

Browse files
committed
Fix typo
1 parent 08b4956 commit befcb49

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ set(LIBRARY_SRCS
7373
libraries/Ticker/src/Ticker.cpp
7474
libraries/Update/src/Updater.cpp
7575
libraries/Update/src/HttpsOTAUpdate.cpp
76-
libraries/USB/USBMSC.cpp
76+
libraries/USB/src/USBMSC.cpp
7777
libraries/WebServer/src/WebServer.cpp
7878
libraries/WebServer/src/Parsing.cpp
7979
libraries/WebServer/src/detail/mimetable.cpp

libraries/USB/examples/USBMSC/USBMSC.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ USBMSC MSC;
1717
#define FAT_MS2B(s,ms) FAT_U8(((((s) & 0x1) * 1000) + (ms)) / 10)
1818
#define FAT_HMS2B(h,m,s) FAT_U8(((s) >> 1)|(((m) & 0x7) << 5)), FAT_U8((((m) >> 3) & 0x7)|((h) << 3))
1919
#define FAT_YMD2B(y,m,d) FAT_U8(((d) & 0x1F)|(((m) & 0x7) << 5)), FAT_U8((((m) >> 3) & 0x1)|((((y) - 1980) & 0x7F) << 1))
20+
#define FAT_TBL2B(l,h) FAT_U8(l), FAT_U8(((l >> 8) & 0xF) | ((h << 4) & 0xF0)), FAT_U8(h >> 4)
2021

2122
#define README_CONTENTS "This is tinyusb's MassStorage Class demo.\r\n\r\nIf you find any bugs or get any questions, feel free to file an\r\nissue at github.com/hathach/tinyusb"
2223

@@ -89,7 +90,7 @@ static uint8_t msc_disk[DISK_SECTOR_COUNT][DISK_SECTOR_SIZE] =
8990

9091
//------------- Block1: FAT12 Table -------------//
9192
{
92-
0xF8, 0xFF, 0xFF, 0xFF, 0x0F // // first 2 entries must be F8FF, third entry is cluster end of readme file
93+
FAT_TBL2B(0xFF8, 0xFFF), FAT_TBL2B(0xFFF, 0x000) // first 2 entries must be 0xFF8 0xFFF, third entry is cluster end of readme file
9394
},
9495

9596
//------------- Block2: Root Directory -------------//

0 commit comments

Comments
 (0)