summaryrefslogtreecommitdiff
path: root/src/app_console
diff options
context:
space:
mode:
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));