From 9ef6bb5480e38b4ce3d195511e1d43a04094d48e Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 16 Apr 2017 10:12:01 +0300 Subject: [PATCH] docs/machine: Move machine.main() misnomer to wipy's known issues. --- docs/library/machine.rst | 7 ------- docs/wipy/general.rst | 10 ++++++++++ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/docs/library/machine.rst b/docs/library/machine.rst index 1007f142fa..dbf8b8b4ce 100644 --- a/docs/library/machine.rst +++ b/docs/library/machine.rst @@ -85,13 +85,6 @@ Miscellaneous functions .. only:: port_wipy - .. function:: main(filename) - - Set the filename of the main script to run after boot.py is finished. If - this function is not called then the default file main.py will be executed. - - It only makes sense to call this function from within boot.py. - .. function:: rng() Return a 24-bit software generated random number. diff --git a/docs/wipy/general.rst b/docs/wipy/general.rst index 024f789660..b3d8e7892d 100644 --- a/docs/wipy/general.rst +++ b/docs/wipy/general.rst @@ -296,3 +296,13 @@ Example:: ... hash.update('12345') # last chunk may be of any length hash.digest() + +Unrelated function in machine module +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. function:: main(filename) + + Set the filename of the main script to run after boot.py is finished. If + this function is not called then the default file main.py will be executed. + + It only makes sense to call this function from within boot.py.