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:
parent
735c009843
commit
0ed5b84ee9
@ -75,6 +75,7 @@ startTime=clock;
|
||||
while (1)
|
||||
if (feof(fid)); break; end
|
||||
|
||||
try
|
||||
%% Read message header
|
||||
% get sync field (0x3C, 1 byte)
|
||||
sync = fread(fid, 1, 'uint8');
|
||||
@ -109,7 +110,7 @@ while (1)
|
||||
end
|
||||
|
||||
%% Read object
|
||||
try
|
||||
|
||||
switch objID
|
||||
$(SWITCHCODE)
|
||||
otherwise
|
||||
|
Loading…
x
Reference in New Issue
Block a user