Hi All
Code is:
/* everything fine = LED GREEN */ if( status == OK) toggleLed(LED_OK);
Error is :
main.c(146): error: #20: identifier "LED_OK" is undefined if( status == OK) toggleLed(LED_OK);
Why???
#define LED_OK 4
With details of chips, boards, and pins, one might be able to make a better guess. Perhaps you could discuss with a teacher about how to formulate questions with a higher probability of getting useful/correct answers.
Here are some 'C' learning/reference resources for you - including a free online textbook:
blog.antronics.co.uk/.../