Skip to content

Commit

Permalink
Fixed incorrect indentation
Browse files Browse the repository at this point in the history
The ``init`` function should be at module scope, but it was nested in the ``TestModule`` class.
  • Loading branch information
Austin Bingham committed Sep 8, 2020
1 parent c83e8b8 commit b38595b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mavproxy/source/docs/development/mavcustmod.rst
Expand Up @@ -47,9 +47,9 @@ class, with hooks for initialisation and reading Mavlink packets:
def mavlink_packet(self, m):
'''handle a mavlink packet'''
def init(mpstate):
'''initialise module'''
return TestModule(mpstate) ``
def init(mpstate):
'''initialise module'''
return TestModule(mpstate) ``
The initialisation section defines commands and module-wide variables.
To add a command:
Expand Down

0 comments on commit b38595b

Please sign in to comment.