Skip to content

Commit 29535f7

Browse files
committed
Do not use fixed SD partition number, but provide it from sketch
1 parent bcf3a8d commit 29535f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Arduino_Portenta_OTA_SD.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ bool Arduino_Portenta_OTA_SD::init()
6767

6868
if (_storage_type == SD_FATFS_MBR)
6969
{
70-
_bd = new mbed::MBRBlockDevice(reinterpret_cast<mbed::BlockDevice *>(&_block_device), 1);
70+
_bd = new mbed::MBRBlockDevice(reinterpret_cast<mbed::BlockDevice *>(&_block_device), _data_offset);
7171
_fs_sd = new mbed::FATFileSystem("fs");
7272
int const err = _fs_sd->mount(_bd);
7373
if (err)

0 commit comments

Comments
 (0)