Hello, I have an error on keil µvision 5 and i don't arrive to resolve it. this is the error: ..\Src\utilsSPIRIT1.c(148): error: #55-D: too many arguments in invocation of macro "Error_Handler"
this is the declaration of my fonction :
void Error_Handler(char * c) { printf(" >>> ERROR @ %02dh%02dm%02ds : %s\r\n", time.Hours, time.Minutes, time.Seconds, c); }
here is a function call :
Error_Handler("Com rx bad");
Someone know how i can resolve my issue ?
Please follow the instructions for posting source code - look at this picture to help you: www.danlhenry.com/.../keil_code.png
Again, you need to read what the message is telling you: it is specifically referring to a macro called "Error_Handler" - not a function ...