apps/modbus/nuttx/portserial.c: Was not returning an error on failure to open the device driver. From Olololshka kokoko
This commit is contained in:
parent
88fd6ef72e
commit
515107e3e0
@ -1560,4 +1560,8 @@
|
|||||||
(2016-02-23).
|
(2016-02-23).
|
||||||
* apps/platform/sabre-6quad: Add a platform directory for the
|
* apps/platform/sabre-6quad: Add a platform directory for the
|
||||||
Sabre 6Quad board (2016-03-01).
|
Sabre 6Quad board (2016-03-01).
|
||||||
* apps/examples/ostest: Add a test of TLS (2016-03-11).
|
* apps/examples/ostest: Add a test of TLS (2016-03-11).
|
||||||
|
* apps/modbus/nuttx/portserial.c: Was not returning an error
|
||||||
|
on failure to open the device driver. From Olololshka kokoko
|
||||||
|
(2016-03-16).
|
||||||
|
|
||||||
|
@ -220,6 +220,7 @@ bool xMBPortSerialInit(uint8_t ucPort, speed_t ulBaudRate,
|
|||||||
{
|
{
|
||||||
vMBPortLog(MB_LOG_ERROR, "SER-INIT", "Can't open serial port %s: %d\n",
|
vMBPortLog(MB_LOG_ERROR, "SER-INIT", "Can't open serial port %s: %d\n",
|
||||||
szDevice, errno);
|
szDevice, errno);
|
||||||
|
bStatus = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_SERIAL_TERMIOS
|
#ifdef CONFIG_SERIAL_TERMIOS
|
||||||
|
Loading…
Reference in New Issue
Block a user