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 09697eb commit 2c9826aCopy full SHA for 2c9826a
src/usb/uf2/ghostfat.c
@@ -300,11 +300,11 @@ void read_block(uint32_t block_no, uint8_t *data) {
300
d->createTime = __DOSTIME__;
301
d->createDate = __DOSDATE__;
302
d->lastAccessDate = __DOSDATE__;
303
- d->highStartCluster = startCluster >> 8; // BUGBUG -- shouldn't this be 16?
+ d->highStartCluster = startCluster >> 16;
304
// DIR_WrtTime and DIR_WrtDate must be supported
305
d->updateTime = __DOSTIME__;
306
d->updateDate = __DOSDATE__;
307
- d->startCluster = startCluster & 0xFF; // BUGBUG -- shouldn't this be 0xFFFF?
+ d->startCluster = startCluster & 0xFFFF;
308
d->size = (inf->content ? strlen(inf->content) : UF2_SIZE);
309
}
310
0 commit comments