Skip to content
Snippets Groups Projects
Commit da52d5c8 authored by Cristian Galperti's avatar Cristian Galperti
Browse files

better handling of ethercat ADC load warnings

this is a very nice approach, to be
replicated into all other try - catch based
loading
parent 05535157
No related branches found
No related tags found
No related merge requests found
......@@ -44,9 +44,8 @@ classdef SCDclass_taskmdsloadprevETHCAT < SCDclass_task
case 2
obj.actualizeNode(shot);
end
catch
fprintf('\n');
warning('SCDclass_taskmdsloadprevETHCAT:init','Error initializing ETHCAT bus for node %d.',obj.node);
catch ME
warning('SCDclass_taskmdsloadprevETHCAT:init','Error initializing ETHCAT bus for node %d. Error is:\n%s',obj.node,getReport(ME));
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment