Skip to content

Commit 394cf7a

Browse files
authored
Merge pull request #11947 from hugueskamba/hk-fix-minimal-console
Minimal Console: Fix syntax errors
2 parents b0751bf + 72d5b51 commit 394cf7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform/source/mbed_retarget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ extern "C" ssize_t write(int fildes, const void *buf, size_t length)
744744
#if MBED_CONF_PLATFORM_STDIO_MINIMAL_CONSOLE_ONLY
745745
if (fildes != STDOUT_FILENO && fildes != STDERR_FILENO) {
746746
errno = EBADF;
747-
return -1
747+
return -1;
748748
}
749749

750750
const unsigned char *buffer = static_cast<const unsigned char *>(buf);
@@ -874,7 +874,7 @@ extern "C" ssize_t read(int fildes, void *buf, size_t length)
874874

875875
unsigned char *buffer = static_cast<unsigned char *>(buf);
876876

877-
buf[0] = minimal_console_getc();
877+
buffer[0] = minimal_console_getc();
878878

879879
ssize_t ret = 1;
880880

0 commit comments

Comments
 (0)