Skip to content

Commit d70239c

Browse files
author
Deepika
committed
Revert "Update error codes as per mbed-os/pull/6336"
This reverts commit ba4ff5c.
1 parent ba4ff5c commit d70239c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

SDBlockDevice.cpp

Lines changed: 4 additions & 4 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.9.0 and above */
145+
/* Required version: 5.8.0 and above */
146146
#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"
147+
#if (MBED_VERSION < MBED_ENCODE_VERSION(5,8,0))
148+
#error "Incompatible mbed-os version detected! Required 5.8.0 and above"
149149
#endif
150150
#else
151-
#warning "mbed-os version 5.9.0 or above required"
151+
#warning "mbed-os version 5.8.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(-ENOTDIR, res);
191+
TEST_ASSERT_EQUAL(-ENOENT, 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)