Closed dashkova closed 4 years ago
hi @dashkova , State_Button_Release only changes if the BUTTON_PRESS it's true, otherwise, the state remains, and later notifications can be sent to Task_Set_Light,
Hi! Hmmm... Fixed the code (data via argument):
int main (void)
{
UserData_t Data;
qOS_Add_StateMachineTask(<...>, &Data )
It works!
Hi!
Example code: producer:
consumer:
In the function Set_Light_Callback() I get NO_FLAG (sendings FLAG_ENLARGE or FLAG_REDUCE).
If the code is changed like this:
In this case, everything is fine, but the Set_Light_Callback() function is called 2 times. Is this a bug?
//Sorry for the english language