CANopenNode
CANopenNode copied to clipboard
Open and close brackets mismatch in CO_Emergency.c
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.
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.