I have right style in theme file. When I set the ‘lv_btn_set_state’ then I see the change, but only after I focus/defocus the button. It seems, that it is not reload the view.
In both of case. When I click the button, then I start WiFi scanning (want to disable button - seems ok - it is focused and disabled). Then I get the scan results in callback, I want enable button (button is still focused and still disabled). I tried focused other button before scan done, but refresh button is still disabled.
When I focus disabled refresh button and defocus it, I see, it is enabled.
The enable process is from another function (can be from another task too).
I’m not sure I fully understand. Please send a simple code example to reproduce the issue. It can be independent form your WiFi GUI just with 1-2 buttons (only the most required things)
Hello, I am sorry about late response - I solved this issue. The issue was in the RTOS tasks. When I right set semaphores for tasks, then it was solved.