projects
/
gps-watch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99c805f
)
common: Make Logger::read_sector_header() read the start_time field.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Fri, 10 Jan 2020 22:17:27 +0000
(23:17 +0100)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Sat, 11 Jan 2020 09:15:46 +0000
(10:15 +0100)
This is necessary so that we can show the date and time when a
recording was done.
src/common/logger.rs
patch
|
blob
|
history
diff --git
a/src/common/logger.rs
b/src/common/logger.rs
index 824e26ca10b2025e6cd906804a8109897922354d..8ca0ed4da62c36a9130cedb90a3a377b44e74907 100644
(file)
--- 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);