refactor: add timezone support to wait_infinity, improve MQTT updates in config mode, and minor cleanup
This commit is contained in:
@@ -2,7 +2,7 @@ use alloc::vec::Vec;
|
||||
use bincode::{Decode, Encode};
|
||||
use embedded_savegame::storage::{Flash, Storage};
|
||||
use embedded_storage::nor_flash::{NorFlash, ReadNorFlash};
|
||||
use esp_bootloader_esp_idf::partitions::{Error as PartitionError, Error, FlashRegion};
|
||||
use esp_bootloader_esp_idf::partitions::{Error as PartitionError, FlashRegion};
|
||||
use log::{error, info};
|
||||
use serde::Serialize;
|
||||
|
||||
@@ -64,8 +64,8 @@ impl Flash for SavegameFlashAdapter<'_> {
|
||||
data.len()
|
||||
);
|
||||
let error = NorFlash::write(self.region, addr, data);
|
||||
if error.is_err() {
|
||||
error!("error {:?}", error.unwrap_err())
|
||||
if let Err(err) = error {
|
||||
error!("error {:?}", err);
|
||||
}
|
||||
error.map_err(SavegameFlashError)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user