Skip to content
Commit a3cf3f80 authored by Artur Tynecki's avatar Artur Tynecki Committed by David Brown
Browse files

mbed: Fix calling to BlockDevice::size before initialization



These changes fixes a bug that can cause an uninitialized BlockDevice
to be queried for its size. In some cases, this can return unexpected
results (eg: 0). Move setting block device size after its
initialization.
Co-created: @AGlass0fMilk - George Beckstein

Signed-off-by: default avatarArtur Tynecki <artur.tynecki@mobica.com>
Signed-off-by: default avatarGeorge Beckstein <george.beckstein@gmail.com>
parent 6822365e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment