1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-05 21:52:10 +01:00

Move the try catch when parsing overo files

This commit is contained in:
James Cotton 2012-07-25 14:41:10 -05:00
parent 735c009843
commit 0ed5b84ee9

View File

@ -75,6 +75,7 @@ startTime=clock;
while (1) while (1)
if (feof(fid)); break; end if (feof(fid)); break; end
try
%% Read message header %% Read message header
% get sync field (0x3C, 1 byte) % get sync field (0x3C, 1 byte)
sync = fread(fid, 1, 'uint8'); sync = fread(fid, 1, 'uint8');
@ -109,7 +110,7 @@ while (1)
end end
%% Read object %% Read object
try
switch objID switch objID
$(SWITCHCODE) $(SWITCHCODE)
otherwise otherwise