Skip to content

Commit 6f2a5ee

Browse files
author
Deepika
authored
Merge pull request ARMmbed#77 from ARMmbed/version_non_rtos
Incorrect version number was checked for non-rtos config
2 parents 304288f + fa74a85 commit 6f2a5ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SDBlockDevice.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@
148148
#include <errno.h>
149149

150150
/* Required version: 5.6.1 and above */
151-
#ifdef MBED_MAJOR_VERSION
151+
#if defined(MBED_MAJOR_VERSION) && MBED_MAJOR_VERSION >= 5
152152
#if (MBED_VERSION < MBED_ENCODE_VERSION(5,6,1))
153-
#error "Incompatible mbed-os version detected! Required 5.5.4 and above"
153+
#error "Incompatible mbed-os version detected! Required 5.6.1 and above"
154154
#endif
155155
#else
156156
#warning "mbed-os version 5.6.1 or above required"

0 commit comments

Comments
 (0)