diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-01-30 12:10:23 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-01-30 12:10:23 +1100 |
| commit | 968d545d6735cd5a5c41574248fd5aeaa81471e7 (patch) | |
| tree | ecfe52fda01da576eec371961b103589896846fb /src/app_console | |
| parent | eacea59e8a3f9602ed06834a8edc4e6ab18a4bb9 (diff) | |
| download | tangara-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.cpp | 2 |
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)); |
