Commit 277a221a authored by schneider's avatar schneider

fix(usb): Reload config when mounting FS again

parent f50fed6d
Pipeline #4532 failed with stages
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment