We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcf3a8d commit 29535f7Copy full SHA for 29535f7
src/Arduino_Portenta_OTA_SD.cpp
@@ -67,7 +67,7 @@ bool Arduino_Portenta_OTA_SD::init()
67
68
if (_storage_type == SD_FATFS_MBR)
69
{
70
- _bd = new mbed::MBRBlockDevice(reinterpret_cast<mbed::BlockDevice *>(&_block_device), 1);
+ _bd = new mbed::MBRBlockDevice(reinterpret_cast<mbed::BlockDevice *>(&_block_device), _data_offset);
71
_fs_sd = new mbed::FATFileSystem("fs");
72
int const err = _fs_sd->mount(_bd);
73
if (err)
0 commit comments