CANopenNode icon indicating copy to clipboard operation
CANopenNode copied to clipboard

Open and close brackets mismatch in CO_Emergency.c

Open pradyum opened this issue 1 year ago • 1 comments

The CO_Emergency.c file has total of 72 opened brackets and 71 closed brackets. There is a missing closed bracket in

void CO_EM_process(CO_EM_t *em, bool_t NMTisPreOrOperational, uint32_t timeDifference_us, uint32_t *timerNext_us)

function block.

pradyum avatar Jan 20 '24 09:01 pradyum

Extra bracket is between pre-processor directives: https://github.com/CANopenNode/CANopenNode/blob/91653819e79072efeb585d56279dc87dbfc4d84a/301/CO_Emergency.c#L632-L643 This is not an error, just a bit ugly. I can't find more elegant solution.

CANopenNode avatar Jan 24 '24 10:01 CANopenNode