diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-09-10 14:42:40 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-09-10 14:42:40 +1000 |
| commit | 50d6efada5bfa2b23a3e1830051475e95d33eb53 (patch) | |
| tree | 825fcc777009a3fe4066dab5cc4ea3413c10c5ee /src/tangara/ui | |
| parent | acdc9789c90ed6f083d054cd07930e020123457f (diff) | |
| download | tangara-fw-50d6efada5bfa2b23a3e1830051475e95d33eb53.tar.gz | |
Use '/sd' instead of '/sdcard' for accessing the sd card
it's cleaner
Diffstat (limited to 'src/tangara/ui')
| -rw-r--r-- | src/tangara/ui/screenshot.cpp | 2 | ||||
| -rw-r--r-- | src/tangara/ui/ui_fsm.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tangara/ui/screenshot.cpp b/src/tangara/ui/screenshot.cpp index e4f9cc3f..b6ee4e2f 100644 --- a/src/tangara/ui/screenshot.cpp +++ b/src/tangara/ui/screenshot.cpp @@ -34,7 +34,7 @@ auto SaveScreenshot(lv_obj_t* obj, const std::string& path) -> void { } // The LVGL lodepng fork uses LVGL's file API, so an extra '/' is needed. - std::string fullpath = "//sdcard/" + path; + std::string fullpath = "//sd/" + path; auto res = lodepng_encode_file(fullpath.c_str(), buf->data, buf->header.w, buf->header.h, LCT_RGB, 8); diff --git a/src/tangara/ui/ui_fsm.cpp b/src/tangara/ui/ui_fsm.cpp index 2009a888..3f59d4ad 100644 --- a/src/tangara/ui/ui_fsm.cpp +++ b/src/tangara/ui/ui_fsm.cpp @@ -730,7 +730,7 @@ void Lua::entry() { sPowerFastChargeEnabled.setDirect(sServices->nvs().FastCharge()); if (sServices->sd() == drivers::SdState::kMounted) { - sLua->RunScript("/sdcard/config.lua"); + sLua->RunScript("/sd/config.lua"); } sLua->RunScript("/lua/main.lua"); } |
