From fa74a858361c8e51873570b3b20abf0b77224b17 Mon Sep 17 00:00:00 2001 From: Deepika Date: Fri, 29 Dec 2017 10:49:15 -0600 Subject: [PATCH] Incorrect version number was checked for non-rtos config / mbed version -2 Version in mbed-os is different if RTOS is not present. Not checking the version number explicitly for mbed-2, but will leave the warning as few API changes were done, and tracking of version is not done for them in mbed-2. --- SDBlockDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SDBlockDevice.cpp b/SDBlockDevice.cpp index 0e3b88c631..091cf52759 100644 --- a/SDBlockDevice.cpp +++ b/SDBlockDevice.cpp @@ -148,9 +148,9 @@ #include /* Required version: 5.6.1 and above */ -#ifdef MBED_MAJOR_VERSION +#if defined(MBED_MAJOR_VERSION) && MBED_MAJOR_VERSION >= 5 #if (MBED_VERSION < MBED_ENCODE_VERSION(5,6,1)) -#error "Incompatible mbed-os version detected! Required 5.5.4 and above" +#error "Incompatible mbed-os version detected! Required 5.6.1 and above" #endif #else #warning "mbed-os version 5.6.1 or above required"