This website works better with JavaScript.
Home
Help
Sign In
LILiK
/
openwrt-packages-dist
Watch
5
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
mbusd: Repair UCI config file about parity
in mbusd, parity must be N, E or O, can't be y. Signed-off-by: Chip Lee <chplee@gmail.com>
lilik-openwrt-22.03
Chip Lee
3 years ago
committed by
Rosen Penev
parent
067d133601
commit
68704969ce
2 changed files
with
3 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
net/mbusd/files/mbusd.conf
+2
-2
net/mbusd/files/mbusd.init
+ 1
- 1
net/mbusd/files/mbusd.conf
View File
@ -9,7 +9,7 @@ config mbusd
option device '/dev/ttyUSB0'
option speed 19200
option databits 8
option parity
0
option parity
'N'
option stopbits 2
option rts 0
+ 2
- 2
net/mbusd/files/mbusd.init
View File
@ -14,7 +14,7 @@ mbusd_instance() {
[ "$enabled" -gt 0 ] || return 1
[ "$parity" = 0 ] && parity=n
|| parity=y
[ "$parity" = 0 ] && parity=n
[ "$rts" = 0 ] && rts=
@ -50,7 +50,7 @@ validate_section_mbusd() {
'device:string' \
'speed:uinteger' \
'databits:uinteger' \
'parity:
bool
' \
'parity:
string
' \
'stopbits:uinteger' \
'rts:bool:0' \
'rtu_retries:uinteger' \
Write
Preview
Loading…
Cancel
Save