From 4e82712727981c944f56d4ada62dc54ad8542d94 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Fri, 10 Jan 2020 23:17:27 +0100 Subject: [PATCH] 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. --- src/common/logger.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2