Skip to content

Commit a21cc9a

Browse files
alexandrecueralexrudd2
authored andcommitted
var name clarification (pymodbus-dev#1304)
1 parent 80d83c8 commit a21cc9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/server_updating.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ async def updating_task(context):
4949
that there is a lrace condition for the update.
5050
"""
5151
_logger.debug("updating the context")
52-
register = 3
52+
fc_as_hex = 3
5353
slave_id = 0x00
5454
address = 0x10
55-
values = context[slave_id].getValues(register, address, count=5)
55+
values = context[slave_id].getValues(fc_as_hex, address, count=5)
5656
values = [v + 1 for v in values] # increment by 1.
5757
txt = f"new values: {str(values)}"
5858
_logger.debug(txt)
59-
context[slave_id].setValues(register, address, values)
59+
context[slave_id].setValues(fc_as_hex, address, values)
6060
await asyncio.sleep(1)
6161

6262

0 commit comments

Comments
 (0)