mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-26 16:26:06 -04:00
Make use of "ensure_directory" function (#1765)
This commit is contained in:
parent
409242507c
commit
58307aee9c
8 changed files with 10 additions and 24 deletions
|
@ -177,7 +177,7 @@ enum class PortaPackModel {
|
|||
static bool save_config(int8_t value) {
|
||||
persistent_memory::set_config_cpld(value);
|
||||
if (sd_card::status() == sd_card::Status::Mounted) {
|
||||
make_new_directory("/hardware");
|
||||
ensure_directory("/hardware");
|
||||
File file;
|
||||
auto sucess = file.create("/hardware/settings.txt");
|
||||
if (!sucess.is_valid()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue