Skip to content

Commit 15f7e1f

Browse files
authored
Merge pull request #111 from calebeby/patch-1
Change on_disabled to on_disable, and on_enabled to on_enable
2 parents 8442a09 + 128ba97 commit 15f7e1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

magicbot/magiccomponent.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def setup(self):
4444
by the time this function is called.
4545
"""
4646

47-
def on_enabled(self):
47+
def on_enable(self):
4848
"""
4949
Called when the robot enters autonomous or teleoperated mode. This
5050
function should initialize your component to a "safe" state so
@@ -56,7 +56,7 @@ def on_enabled(self):
5656
"""
5757

5858

59-
def on_disabled(self):
59+
def on_disable(self):
6060
"""
6161
Called when the robot leaves autonomous or teleoperated
6262
"""
@@ -66,4 +66,4 @@ def execute(self):
6666
"""
6767
This function is called at the end of the control loop
6868
"""
69-
69+

0 commit comments

Comments
 (0)