1
0
mirror of https://github.com/mist-devel/mist-firmware.git synced 2026-02-26 16:23:35 +00:00

memset bugfix

This commit is contained in:
Eugene Azarov
2026-01-21 23:51:45 +03:00
parent e9efd6569c
commit cfa3169c00

View File

@@ -614,7 +614,7 @@ void user_io_sd_set_config(void) {
// synthetic CSD for non-MMC storage
uint32_t capacity;
disk_ioctl(fs.pdrv, GET_SECTOR_COUNT, &capacity);
memset(data, sizeof(data), 0);
memset(data, 0, sizeof(data));
data[16+0] = 0x40;
data[16+1] = 0x0e;
data[16+3] = 0x32;