cleanup
This commit is contained in:
@@ -565,13 +565,7 @@ impl Esp<'_> {
|
||||
/// Retries once on flash error.
|
||||
pub(crate) async fn save_config(&mut self, config: Vec<u8>) -> FatResult<()> {
|
||||
let timestamp = self.get_time().to_rfc3339();
|
||||
match self.savegame.save(config.as_slice(), ×tamp) {
|
||||
Ok(()) => Ok(()),
|
||||
Err(e) => {
|
||||
warn!("First save attempt failed: {e:?}. Retrying...");
|
||||
self.savegame.save(config.as_slice(), ×tamp)
|
||||
}
|
||||
}
|
||||
self.savegame.save(config.as_slice(), ×tamp)
|
||||
}
|
||||
|
||||
/// Delete a specific save slot by erasing it on flash.
|
||||
|
||||
Reference in New Issue
Block a user