Skip to content

Commit c9a69e9

Browse files
committed
Fix bugs
1 parent 6c6367c commit c9a69e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,19 +177,19 @@ This library can be used with asyncio.
177177
178178
while True:
179179
180-
# Wait for RPDO 1
181-
t = await tpdo.await_for_reception(1)
180+
# Wait for TPDO 1
181+
t = await node.tpdo[1].await_for_reception(1)
182182
if not t:
183183
continue
184184
185-
# Get the PDO value
185+
# Get the TPDO 1 value
186186
rpm = node.tpdo[1]['MotorSpeed Actual'].get_raw()
187187
print(f'SPEED on motor {nodeid}:', rpm)
188188
189189
# Sleep a little
190190
await asyncio.sleep(0.2)
191191
192-
# Send PDO with
192+
# Send RPDO 1 with some data
193193
node.rpdo[1]['Some variable'].set_phys(42)
194194
node.rpdo[1].transmit()
195195

0 commit comments

Comments
 (0)