mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 16:23:33 +08:00
Misc SYSLOG and STM32 serial fixes
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5576 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+10
-1
@@ -4057,4 +4057,13 @@
|
||||
Serial was driver was not being built if there is no console
|
||||
device. Obviously, the serial driver may be needed even in
|
||||
this case.
|
||||
|
||||
* arch/arm/src/stm32/stm32_serial.c: If there is a serial console,
|
||||
it would be ttyS0 and the others would be ttyS1-5. If there
|
||||
is not serial console, was labeling them ttyS1-6; now labels them
|
||||
ttyS0-5.
|
||||
* fs/fs_syslog.c: Can't handle SYSLOG output to character device from
|
||||
the IDLE task (because it can't block). syslog_putc now returns EOF
|
||||
on failure and sets errno. Fixed some errors in error handling.
|
||||
* libc/stdio/lib_syslogstream.c: Checking of return value from
|
||||
syslog_putc was bogus. Switching to EOF for all errors solves
|
||||
this.
|
||||
|
||||
Reference in New Issue
Block a user