diff options
| author | Damien George | 2014-08-16 14:23:22 +0100 |
|---|---|---|
| committer | Damien George | 2014-08-16 14:23:22 +0100 |
| commit | b63be37be171dd9a88912e848a380fe035711d99 (patch) | |
| tree | a4683fff9e4f217ce410d6a0de69652660df2e61 /stmhal/modpyb.c | |
| parent | b0accc85716f4190dca3464b999da5293448a6c9 (diff) | |
stmhal: In safe mode, still mount SD card and present as MSD over USB.
It's still "safe" because no scripts are run. Remove the SD card if you
want to access the internal flash filesystem. Addresses issue #616.
Also: remove obsolete pyb.source_dir setting, and reset pyb.main and
pyb.usb_mode settings on soft-reset.
Diffstat (limited to 'stmhal/modpyb.c')
| -rw-r--r-- | stmhal/modpyb.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/stmhal/modpyb.c b/stmhal/modpyb.c index 4b81d51e3..a075cf2c3 100644 --- a/stmhal/modpyb.c +++ b/stmhal/modpyb.c @@ -341,7 +341,6 @@ STATIC mp_obj_t pyb_hid_send_report(mp_obj_t arg) { } STATIC MP_DEFINE_CONST_FUN_OBJ_1(pyb_hid_send_report_obj, pyb_hid_send_report); -MP_DECLARE_CONST_FUN_OBJ(pyb_source_dir_obj); // defined in main.c MP_DECLARE_CONST_FUN_OBJ(pyb_main_obj); // defined in main.c MP_DECLARE_CONST_FUN_OBJ(pyb_usb_mode_obj); // defined in main.c @@ -360,7 +359,6 @@ STATIC const mp_map_elem_t pyb_module_globals_table[] = { { MP_OBJ_NEW_QSTR(MP_QSTR_stop), (mp_obj_t)&pyb_stop_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_standby), (mp_obj_t)&pyb_standby_obj }, - { MP_OBJ_NEW_QSTR(MP_QSTR_source_dir), (mp_obj_t)&pyb_source_dir_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_main), (mp_obj_t)&pyb_main_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_usb_mode), (mp_obj_t)&pyb_usb_mode_obj }, |
