in mbusd, parity must be N, E or O, can't be y.
Signed-off-by: Chip Lee <chplee@gmail.com>
option device '/dev/ttyUSB0'
option speed 19200
option databits 8
- option parity 0
+ option parity 'N'
option stopbits 2
option rts 0
[ "$enabled" -gt 0 ] || return 1
- [ "$parity" = 0 ] && parity=n || parity=y
+ [ "$parity" = 0 ] && parity=n
[ "$rts" = 0 ] && rts=
'device:string' \
'speed:uinteger' \
'databits:uinteger' \
- 'parity:bool' \
+ 'parity:string' \
'stopbits:uinteger' \
'rts:bool:0' \
'rtu_retries:uinteger' \