Skip to content

Commit

Permalink
Merge branch 'hotfix-windows-storage-service'
Browse files Browse the repository at this point in the history
  • Loading branch information
Beaglehot committed May 23, 2022
2 parents 62d106d + 3264b9f commit 8694cac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inc/ram_disk.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#define VOLUME_LABEL "Pico MC"

#define DISK_BLOCK_NUM 353 // results in 128KB ram disk (some blocks are lost due to FAT12 overhead)
#define DISK_BLOCK_NUM 357 // results in ~128KB ram disk (some blocks are lost to FAT overhead, some due to Windows Storage Service)
#define DISK_BLOCK_SIZE 512
#define SECTOR_NUM DISK_BLOCK_NUM
#define SECTOR_SIZE DISK_BLOCK_SIZE
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ int main(void) {
tud_task(); // tinyusb device task
cdc_task();

if(to_ms_since_boot(get_absolute_time()) > TUD_MOUNT_TIMEOUT && !tud_mount_status )
if(to_ms_since_boot(get_absolute_time()) > TUD_MOUNT_TIMEOUT && !tud_mount_status)
break;
}

Expand Down
2 changes: 1 addition & 1 deletion src/ram_disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ uint32_t RAM_disk_import_lfs_memcard() {
1, // number of FAT copies
1, // data alignment (in sectors)
0, // number of root dir entires (default 512)
0 // cluster size (default, use whatever disk uses)
0 // cluster size (let FatFS decide)
};

if(FR_OK == f_mkfs("", &opt, working_buffer, WORK_BUFF_SIZE)) {
Expand Down

0 comments on commit 8694cac

Please sign in to comment.