aboutsummaryrefslogtreecommitdiff
path: root/ROMFS
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-01-10 12:57:09 +0100
committerLorenz Meier <lm@inf.ethz.ch>2013-01-10 12:57:09 +0100
commit46cf2a538f3c48ad7aba4cfad2a47b406733f365 (patch)
treeea134c3058e34a6e8b8b7e7bf682237304f55d6e /ROMFS
parent241a8357c0dcd32a21cf468b574cb766b60b0ab5 (diff)
downloadpx4-firmware-46cf2a538f3c48ad7aba4cfad2a47b406733f365.tar.gz
px4-firmware-46cf2a538f3c48ad7aba4cfad2a47b406733f365.tar.bz2
px4-firmware-46cf2a538f3c48ad7aba4cfad2a47b406733f365.zip
Included workaround for MacOS timestamp issue
Diffstat (limited to 'ROMFS')
-rw-r--r--ROMFS/logging/logconv.m9
1 files changed, 7 insertions, 2 deletions
diff --git a/ROMFS/logging/logconv.m b/ROMFS/logging/logconv.m
index 263298dbc..b53d0ae39 100644
--- a/ROMFS/logging/logconv.m
+++ b/ROMFS/logging/logconv.m
@@ -9,6 +9,13 @@ close all
% Set the path to your sysvector.bin file here
filePath = 'sysvector.bin';
+% Work around a Matlab bug (not related to PX4)
+% where timestamps from 1.1.1970 do not allow to
+% read the file's size
+if ismac
+ system('touch -t 201212121212.12 sysvector.bin');
+end
+
%%%%%%%%%%%%%%%%%%%%%%%
% SYSTEM VECTOR
%
@@ -105,5 +112,3 @@ if exist(filePath, 'file')
else
disp(['file: ' filePath ' does not exist' char(10)]);
end
-
-