mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-08 04:56:43 +00:00
add sync to write function in pddb commands
This commit is contained in:
parent
3a5e385b9a
commit
2c815375a1
1 changed files with 1 additions and 0 deletions
|
|
@ -137,6 +137,7 @@ impl<'a> ShellCmdApi<'a> for PddbCmd {
|
|||
if val.len() > 0 {
|
||||
match key.write(&val.as_bytes()[..val.len()]) {
|
||||
Ok(len) => {
|
||||
self.pddb.sync().ok();
|
||||
write!(ret, "Wrote {} bytes to {}:{}", len, dict, keyname).ok();
|
||||
}
|
||||
Err(e) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue