File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -70,17 +70,18 @@ BlockDevice *BlockDevice::get_default_instance()
70
70
71
71
getOTAData (&storage_type, &data_offset, &update_size);
72
72
73
- if (storage_type & INTERNAL_FLASH_FLAG) {
74
- if (storage_type & (FATFS_FLAG | LITTLEFS_FLAG)) {
75
- // have a filesystem, use offset as partition start
76
- static FlashIAPBlockDevice flashIAP_bd (0x8000000 + data_offset, 2 * 1024 * 1024 - data_offset);
77
- raw_bd = &flashIAP_bd;
78
- } else {
79
- // raw device, no offset
80
- static FlashIAPBlockDevice flashIAP_bd (0x8000000 , 2 * 1024 * 1024 );
81
- raw_bd = &flashIAP_bd;
82
- }
83
- }
73
+ // if (storage_type & INTERNAL_FLASH_FLAG) {
74
+ // if (storage_type & (FATFS_FLAG | LITTLEFS_FLAG)) {
75
+ // // have a filesystem, use offset as partition start
76
+ // static FlashIAPBlockDevice flashIAP_bd(0x8000000 + data_offset, 2 * 1024 * 1024 - data_offset);
77
+ // raw_bd = &flashIAP_bd;
78
+ // } else {
79
+ // // raw device, no offset
80
+ // static FlashIAPBlockDevice flashIAP_bd(0x8000000, 2 * 1024 * 1024);
81
+ // raw_bd = &flashIAP_bd;
82
+ // }
83
+ // }
84
+
84
85
#if MCUBOOT_ENVIE_SDCARD
85
86
if (storage_type & SDCARD_FLAG) {
86
87
static SDMMCBlockDevice SDMMC_bd;
You can’t perform that action at this time.
0 commit comments