diff --git a/libconfig/src/sd_reader.rs b/libconfig/src/sd_reader.rs index 6a11ea9..0b6c23d 100644 --- a/libconfig/src/sd_reader.rs +++ b/libconfig/src/sd_reader.rs @@ -93,6 +93,7 @@ pub enum PartitionEntry { impl SdReader { /// Create SdReader from SdCard pub fn new(sd: SdCard) -> SdReader { + debug!("creating new sd reader from sd card"); let mut vec: Vec = Vec::with_capacity(BLOCK_SIZE); unsafe { vec.set_len(vec.capacity()); @@ -186,6 +187,7 @@ impl SdReader { mut self, entry: PartitionEntry, ) -> Result, fatfs::Error> { + debug!("mounting fatfs"); let mut buffer: [u8; 4] = [0; 4]; self.seek(SeekFrom::Start(0x1FE))?; self.read_exact(&mut buffer[..2])?;