modbus: Fix compilation issue and advice users about termios

This commit is contained in:
Alan C. Assis 2021-04-04 16:15:35 -03:00 committed by Xiang Xiao
parent 478a7027d9
commit f9e487ae1d
3 changed files with 9 additions and 0 deletions

View file

@ -76,6 +76,10 @@
****************************************************************************/
/* Configuration ************************************************************/
#ifndef CONFIG_SERIAL_TERMIOS
# error "CONFIG_SERIAL_TERMIOS is needed by modbus example"
#endif
#ifndef CONFIG_EXAMPLES_MODBUS_PORT
# define CONFIG_EXAMPLES_MODBUS_PORT 0
#endif