Hi,
I need to use
p_status->action == RELEASE_ACTION
to set the brightness level, but the p_status->action only gets updated after the loop finish so:
if (p_status->action == RELEASE_ACTION) break;
doesn't break the loops to increase or decrease the PWM duty cycle changes.
how can I update the p_status->action in the middle of the loop?
main c: www.dropbox.com/.../main.c