From 968d545d6735cd5a5c41574248fd5aeaa81471e7 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 30 Jan 2024 12:10:23 +1100 Subject: hand off the sd card to the samd properly, and remount when it's finished --- src/app_console/app_console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/app_console/app_console.cpp') diff --git a/src/app_console/app_console.cpp b/src/app_console/app_console.cpp index 7347f130..4b755c67 100644 --- a/src/app_console/app_console.cpp +++ b/src/app_console/app_console.cpp @@ -471,7 +471,7 @@ int CmdSamd(int argc, char** argv) { } else if (cmd == "msc") { bool current = samd.UsbMassStorage(); std::cout << "toggling to: " << !current << std::endl; - samd.UsbMassStorage(!current); + events::System().Dispatch(system_fsm::SamdUsbMscChanged{.en = !current}); } else if (cmd == "off") { std::cout << "bye !!!" << std::endl; vTaskDelay(pdMS_TO_TICKS(5)); -- cgit v1.2.3