docs appguide: Update the section on updating main.py

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
This commit is contained in:
Daniel Thompson 2021-09-05 20:57:24 +01:00
parent fe8f6c799c
commit a7c8939737

View file

@ -295,7 +295,7 @@ launcher and it does not start automatically.
To remove the application simply reboot the watch by pressing and To remove the application simply reboot the watch by pressing and
holding the physical button until the watch enters OTA mode (this holding the physical button until the watch enters OTA mode (this
takes around five seconds). Once the watch is in OTA mode then takes around five seconds). Once the watch is in OTA mode then
press the phyiscal button again to return to normal mode with the press the physical button again to return to normal mode with the
application cleared out. application cleared out.
.. _Uploading in source code form: .. _Uploading in source code form:
@ -329,8 +329,8 @@ and copies it to the external FLASH. After this point ``main.py`` is user
modifiable and can be used to tweak the configuration of the watch before modifiable and can be used to tweak the configuration of the watch before
it starts running. it starts running.
Edit ``wasp/main.py`` to add the following two lines between ``import wasp`` Edit ``wasp/main.py`` to add the following two lines and the end of the file
and the ``wasp.system.run()``: (after the ``wasp.system.schedule()``:
.. code-block:: python .. code-block:: python