Add config writing capability #68

Closed
cw wants to merge 7 commits from cw/zynq-rs:master into master

Tested with short (less than 100 characters) and long data strings

Tested with short (less than 100 characters) and long data strings
sb10q reviewed 2020-09-11 16:33:42 +08:00
@ -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

Add blank line between functions
sb10q reviewed 2020-09-11 16:34:05 +08:00
@ -115,0 +206,4 @@
}
}
};
if need_to_rename { // docs: ensure no ref to files

docs?

docs?

This needs to be exposed to the artiq_coremgmt interface.

This needs to be exposed to the artiq_coremgmt interface.
sb10q reviewed 2020-09-11 17:24:06 +08:00
@ -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

I cannot get it to work with rename. rename_file is the workaround

Why not?

Why not?
sb10q reviewed 2020-09-11 17:24:43 +08:00
@ -115,0 +166,4 @@
}
};
rename_file(&root_dir, config_txt_tmp, "/CONFIG.TXT")?;

Why?

Why?
sb10q closed this pull request 2020-10-30 16:49:51 +08:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/zynq-rs#68
There is no content yet.