Skip to content

Commit def1930

Browse files
authored
Merge pull request ARMmbed#122 from ARMmbed/LiyouZhou-patch-1
Guard sdblockdevice instantiation
2 parents e2f4e60 + 375bbc8 commit def1930

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ extern ARM_UC_PAAL_UPDATE MBED_CLOUD_CLIENT_UPDATE_STORAGE;
5555
#error Update client storage must be defined in user configuration file
5656
#endif
5757

58-
#if MBED_CLOUD_CLIENT_UPDATE_STORAGE == ARM_UCP_FLASHIAP_BLOCKDEVICE
58+
#if defined(ARM_UC_USE_PAL_BLOCKDEVICE) && (ARM_UC_USE_PAL_BLOCKDEVICE==1)
5959
#include "SDBlockDevice.h"
6060

6161
/* initialise sd card blockdevice */

0 commit comments

Comments
 (0)