From: Tilman Sauerbeck Date: Fri, 10 Jan 2020 22:17:27 +0000 (+0100) Subject: common: Make Logger::read_sector_header() read the start_time field. X-Git-Url: http://git.code-monkey.de/?a=commitdiff_plain;h=4e82712727981c944f56d4ada62dc54ad8542d94;p=gps-watch.git common: Make Logger::read_sector_header() read the start_time field. This is necessary so that we can show the date and time when a recording was done. --- diff --git a/src/common/logger.rs b/src/common/logger.rs index 824e26c..8ca0ed4 100644 --- a/src/common/logger.rs +++ b/src/common/logger.rs @@ -341,7 +341,7 @@ impl<'a> Logger<'a> { fn read_sector_header(&mut self, sector_index: usize) { let address = sector_index * SECTOR_SIZE; - let mut chunk = [0u8; 4]; + let mut chunk = [0u8; 8]; self.storage.read(address, &mut chunk);