Skip to content

Commit 25c4e5b

Browse files
authored
Merge branch 'master' into pypi
2 parents 6cf4ba2 + 2c1906c commit 25c4e5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

minicps/pymodbus/synch-client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@
7777
elif args.type == 'CO':
7878

7979
if args.count == 1:
80-
if args.coil == 1:
80+
# NOTE: coil is a list with one bool
81+
if args.coil[0] == 1:
8182
co_write = client.write_coil(args.offset, True)
8283
else:
8384
co_write = client.write_coil(args.offset, False)

0 commit comments

Comments
 (0)