Add config writing capability #68
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "cw/zynq-rs:master"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Tested with short (less than 100 characters) and long data strings
@ -69,0 +82,4 @@
}
Ok(())
}
fn rename_file<'a>(dir: &fatfs::Dir<sd_reader::SdReader>, old_file_name: &str, new_file_name: &str) -> Result<'a, ()>{
Add blank line between functions
@ -115,0 +206,4 @@
}
}
};
if need_to_rename { // docs: ensure no ref to files
docs?
This needs to be exposed to the artiq_coremgmt interface.
@ -70,0 +84,4 @@
Ok(())
}
fn rename_file<'a>(dir: &fatfs::Dir<sd_reader::SdReader>, old_file_name: &str, new_file_name: &str) -> Result<'a, ()>{
https://docs.rs/fatfs/0.3.2/fatfs/struct.Dir.html#method.rename ???
I cannot get it to work with rename. rename_file is the workaround
Why not?
@ -115,0 +166,4 @@
}
};
rename_file(&root_dir, config_txt_tmp, "/CONFIG.TXT")?;
Why?
Pull request closed