Skip to content

Commit c8ae38f

Browse files
author
Deepika Bhavnani
authored
Merge pull request #105 from deepikabhavnani/error_fix1
Correct error codes as per mbed-os/pull/6336
2 parents d70239c + 1e13bfe commit c8ae38f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

SDBlockDevice.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@
142142
#include "mbed_debug.h"
143143
#include <errno.h>
144144

145-
/* Required version: 5.8.0 and above */
146-
#if defined( MBED_MAJOR_VERSION) && MBED_MAJOR_VERSION >= 5
147-
#if (MBED_VERSION < MBED_ENCODE_VERSION(5,8,0))
148-
#error "Incompatible mbed-os version detected! Required 5.8.0 and above"
145+
/* Required version: 5.9.0 and above */
146+
#if defined(MBED_MAJOR_VERSION) && MBED_MAJOR_VERSION >= 5
147+
#if (MBED_VERSION < MBED_ENCODE_VERSION(5,9,0))
148+
#error "Incompatible mbed-os version detected! Required 5.9.0 and above"
149149
#endif
150150
#else
151-
#warning "mbed-os version 5.8.0 or above required"
151+
#warning "mbed-os version 5.9.0 or above required"
152152
#endif
153153

154154
#ifndef MBED_CONF_SD_CMD_TIMEOUT

TESTS/filesystem/dirs/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ void test_directory_failures() {
188188
res = fs.mkdir("potato", 0777);
189189
TEST_ASSERT_EQUAL(-EEXIST, res);
190190
res = dir[0].open(&fs, "tomato");
191-
TEST_ASSERT_EQUAL(-ENOENT, res);
191+
TEST_ASSERT_EQUAL(-ENOTDIR, res);
192192
res = dir[0].open(&fs, "burito");
193193
TEST_ASSERT_NOT_EQUAL(0, res);
194194
res = file[0].open(&fs, "tomato", O_RDONLY);

0 commit comments

Comments
 (0)