Fix issue #355, python module event_callback documentation.
authorGuy McSwain <guy.mcswain@gmail.com>
Thu, 25 Jun 2020 17:34:45 +0000 (12:34 -0500)
committerGuy McSwain <guy.mcswain@gmail.com>
Fri, 26 Jun 2020 18:25:59 +0000 (13:25 -0500)
pigpio.py

index 978aff2f1446e1f2d0ff31e9e9807c5717bdac64..2d418b16bb0c8fc46713b8a332e5828b12b09f14 100644 (file)
--- a/pigpio.py
+++ b/pigpio.py
@@ -5055,7 +5055,7 @@ class pi():
       by calling the tally function.  The count may be reset to zero
       by calling the reset_tally function.
 
-      The callback may be cancelled by calling the event_cancel function.
+      The callback may be canceled by calling the cancel function.
 
       An event may have multiple callbacks (although I can't think of
       a reason to do so).
@@ -5072,7 +5072,7 @@ class pi():
 
       cb2.reset_tally()
 
-      cb1.event_cancel() # To cancel callback cb1.
+      cb1.cancel() # To cancel callback cb1.
       ...
       """