diff options
Diffstat (limited to 'components/libc/armlibc')
| -rw-r--r-- | components/libc/armlibc/stubs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/libc/armlibc/stubs.c b/components/libc/armlibc/stubs.c index 1c79ce2861..4ca7cf056f 100644 --- a/components/libc/armlibc/stubs.c +++ b/components/libc/armlibc/stubs.c @@ -168,7 +168,8 @@ int _sys_write(FILEHANDLE fh, const unsigned char *buf, unsigned len, int mode) console_device = rt_console_get_device(); if (console_device != 0) rt_device_write(console_device, 0, buf, len); - return len; + + return 0; #endif } |
