Skip to content

Commit

Permalink
apps/modbus/nuttx/portserial.c: Was not returning an error on failure…
Browse files Browse the repository at this point in the history
… to open the device driver. From Olololshka kokoko
  • Loading branch information
gregory-nutt committed Mar 16, 2016
1 parent 88fd6ef commit 515107e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1560,4 +1560,8 @@
(2016-02-23).
* apps/platform/sabre-6quad: Add a platform directory for the
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).

1 change: 1 addition & 0 deletions modbus/nuttx/portserial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
szDevice, errno);
bStatus = false;
}

#ifdef CONFIG_SERIAL_TERMIOS
Expand Down

0 comments on commit 515107e

Please sign in to comment.