summaryrefslogtreecommitdiff
path: root/src/app_console
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-01-30 12:10:23 +1100
committerjacqueline <me@jacqueline.id.au>2024-01-30 12:10:23 +1100
commit968d545d6735cd5a5c41574248fd5aeaa81471e7 (patch)
treeecfe52fda01da576eec371961b103589896846fb /src/app_console
parenteacea59e8a3f9602ed06834a8edc4e6ab18a4bb9 (diff)
downloadtangara-fw-968d545d6735cd5a5c41574248fd5aeaa81471e7.tar.gz
hand off the sd card to the samd properly, and remount when it's finished
Diffstat (limited to 'src/app_console')
-rw-r--r--src/app_console/app_console.cpp2
1 files changed, 1 insertions, 1 deletions
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));