Skip to content

Minimal Console: Fix syntax errors #11947

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions platform/source/mbed_retarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ extern "C" ssize_t write(int fildes, const void *buf, size_t length)
#if MBED_CONF_PLATFORM_STDIO_MINIMAL_CONSOLE_ONLY
if (fildes != STDOUT_FILENO && fildes != STDERR_FILENO) {
errno = EBADF;
return -1
return -1;
}

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

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

buf[0] = minimal_console_getc();
buffer[0] = minimal_console_getc();

ssize_t ret = 1;

Expand Down