mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +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 {
|
if val.len() > 0 {
|
||||||
match key.write(&val.as_bytes()[..val.len()]) {
|
match key.write(&val.as_bytes()[..val.len()]) {
|
||||||
Ok(len) => {
|
Ok(len) => {
|
||||||
|
self.pddb.sync().ok();
|
||||||
write!(ret, "Wrote {} bytes to {}:{}", len, dict, keyname).ok();
|
write!(ret, "Wrote {} bytes to {}:{}", len, dict, keyname).ok();
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue