diff options
author | Damien George <damien.p.george@gmail.com> | 2014-05-19 18:26:51 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-05-19 18:26:51 +0100 |
commit | f905ebb1738f41cac2f4d9520c3a1b292a6c5072 (patch) | |
tree | 33a5d3abe9039778ea53fa1b4d9a7177b3fb47b9 | |
parent | 404f7cf9026f3a37546233a784543cbb600925d1 (diff) | |
download | micropython-f905ebb1738f41cac2f4d9520c3a1b292a6c5072.tar.gz micropython-f905ebb1738f41cac2f4d9520c3a1b292a6c5072.zip |
stmhal: Make pyb.bootloader take no arguments.
-rw-r--r-- | stmhal/modpyb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/modpyb.c b/stmhal/modpyb.c index 47e9710d75..43a017751d 100644 --- a/stmhal/modpyb.c +++ b/stmhal/modpyb.c @@ -64,7 +64,7 @@ /// \function bootloader() /// Activate the bootloader without BOOT* pins. -STATIC NORETURN mp_obj_t pyb_bootloader(uint n_args, const mp_obj_t *args) { +STATIC NORETURN mp_obj_t pyb_bootloader(void) { storage_flush(); HAL_RCC_DeInit(); @@ -76,7 +76,7 @@ STATIC NORETURN mp_obj_t pyb_bootloader(uint n_args, const mp_obj_t *args) { while (1); } -STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(pyb_bootloader_obj, 0, 1, pyb_bootloader); +STATIC MP_DEFINE_CONST_FUN_OBJ_0(pyb_bootloader_obj, pyb_bootloader); /// \function info([dump_alloc_table]) /// Print out lots of information about the board. |