Skip to content

Commit 21966e9

Browse files
committed
docs: fix example in halmodule
1 parent 24b1e58 commit 21966e9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/src/hal/halmodule.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,9 @@ And have a function to be called:
317317
[source,python]
318318
----
319319
def _on_example_trigger_change(self,pin,userdata=None):
320-
print "pin value changed to:" % (pin.get())
321-
print "pin name= %s" % (pin.get_name())
322-
print "pin type= %d" % (pin.get_type())
320+
print "pin value changed to: {}".format(pin.get())
321+
print "pin name= {}".format(pin.get_name())
322+
print "pin type= {}".format(pin.get_type())
323323

324324
# this can be called outside the function
325325
self.example_trigger.get()

0 commit comments

Comments
 (0)