Skip to content
Snippets Groups Projects
Commit 277a221a authored by schneider's avatar schneider
Browse files

fix(usb): Reload config when mounting FS again

parent f50fed6d
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@
#include "epicardium.h"
#include "modules/filesystem.h"
#include "modules/config.h"
#include "usb/cdcacm.h"
#include "usb/mass_storage.h"
......@@ -139,6 +140,7 @@ int epic_usb_shutdown(void)
esb_deinit();
if (s_fsDetached) {
fatfs_attach();
load_config();
}
return 0;
}
......@@ -155,6 +157,7 @@ int epic_usb_cdcacm(void)
esb_deinit();
if (s_fsDetached) {
fatfs_attach();
load_config();
}
return esb_init(&s_cfg_cdcacm);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment