mirror of
https://github.com/openmv/openmv.git
synced 2025-09-26 23:09:13 +08:00
Formatting test.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
parent
0de60ff3d5
commit
3dcfff6446
@ -14,7 +14,8 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
static void crc_init(void) {
|
static void crc_init(void)
|
||||||
|
{
|
||||||
CRC_HandleTypeDef hcrc;
|
CRC_HandleTypeDef hcrc;
|
||||||
|
|
||||||
__HAL_RCC_CRC_CLK_ENABLE();
|
__HAL_RCC_CRC_CLK_ENABLE();
|
||||||
|
@ -330,13 +330,15 @@ soft_reset:
|
|||||||
bool interrupted = mp_exec_bootscript("boot.py", true);
|
bool interrupted = mp_exec_bootscript("boot.py", true);
|
||||||
|
|
||||||
// Run main.py script on first soft-reset.
|
// Run main.py script on first soft-reset.
|
||||||
if (first_soft_reset && !interrupted && mp_vfs_import_stat("main.py")) {
|
if (first_soft_reset && !interrupted && mp_vfs_import_stat("main.py"))
|
||||||
|
{
|
||||||
mp_exec_bootscript("main.py", true);
|
mp_exec_bootscript("main.py", true);
|
||||||
goto soft_reset_exit;
|
goto soft_reset_exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there's no script ready, just re-exec REPL
|
// If there's no script ready, just re-exec REPL
|
||||||
while (!usbdbg_script_ready()) {
|
while (!usbdbg_script_ready())
|
||||||
|
{
|
||||||
nlr_buf_t nlr;
|
nlr_buf_t nlr;
|
||||||
|
|
||||||
if (nlr_push(&nlr) == 0) {
|
if (nlr_push(&nlr) == 0) {
|
||||||
@ -355,7 +357,7 @@ soft_reset:
|
|||||||
}
|
}
|
||||||
|
|
||||||
nlr_pop();
|
nlr_pop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (usbdbg_script_ready()) {
|
if (usbdbg_script_ready()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user