ums/nyx: reinit sd to update cal trimmers for max perf

This commit is contained in:
CTCaer committed 2021-03-17 09:12:30 +02:00
1 parent ef5a01433d
commit f21f13b15d
2 files changed
+4

No files matched your search

+1
View File
@@ -1837,6 +1837,7 @@ int usb_device_gadget_ums(usb_ctxt_t *usbs)
// Initialize sdmmc.
if (usbs->type == MMC_SD)
{
sd_end();
sd_mount();
sd_unmount();
ums.lun.sdmmc = &sd_sdmmc;
+3
View File
@@ -1269,6 +1269,9 @@ static lv_res_t _create_mbox_benchmark(bool sd_bench)
if (sd_bench)
{
storage = &sd_storage;
// Re-initialize to update trimmers.
sd_end();
res = !sd_mount();
}
else