config: add "fat_lfn" feature

pull/96/head
mwojcik 10 months ago
parent f496da4f3e
commit 56c27e98e4
  1. 1
      libconfig/Cargo.toml
  2. 2
      libconfig/src/lib.rs

@ -16,3 +16,4 @@ target_coraz7 = []
target_redpitaya = []
target_kasli_soc = []
ipv6 = []
fat_lfn = [ "fatfs/alloc" ]

@ -164,7 +164,7 @@ impl Config {
f.seek(SeekFrom::End(0))?;
write!(f, "{}={}\n", key, String::from_utf8(value).unwrap())?;
} else {
let mut dir = root_dir.create_dir("/CONFIG")?;
let dir = root_dir.create_dir("/CONFIG")?;
let mut f = dir.create_file(&[key, ".BIN"].concat())?;
f.write_all(&value)?;
}

Loading…
Cancel
Save