stm32: Suggest putting code in main.py not boot.py.

Don't want users to accidentally use boot.py (because recovering requires
knowing how to activate safe mode).

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
Jim Mussared
2021-09-15 11:07:43 +10:00
committed by Damien George
parent 9e2423e730
commit e3eebc329f
3 changed files with 6 additions and 6 deletions

View File

@@ -99,8 +99,8 @@ OsiTaskHandle svTaskHandle;
static fs_user_mount_t *sflash_vfs_fat;
static const char fresh_main_py[] = "# main.py -- put your code here!\r\n";
static const char fresh_boot_py[] = "# boot.py -- run on boot-up\r\n"
"# can run arbitrary Python, but best to keep it minimal\r\n"
static const char fresh_boot_py[] = "# boot.py -- run on boot to configure USB and filesystem\r\n"
"# Put app code in main.py\r\n"
#if MICROPY_STDIO_UART
"import os, machine\r\n"
"os.dupterm(machine.UART(0, " MP_STRINGIFY(MICROPY_STDIO_UART_BAUD) "))\r\n"