openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601, BL602 and LN882H
https://openbekeniot.github.io/webapp/devicesList.html
1.49k stars 279 forks source link

BL602 - waitFor NTPState 1 doesn't seem to work and waits forever. #1219

Open delay0 opened 6 months ago

delay0 commented 6 months ago

"waitFor NTPState 1" doesn't seem to work and waits forever.

running Build: TMGN on beken #1218 ( https://github.com/openshwprojects/OpenBK7231T_App/pull/1218 )

"vendor": "Tuya", "name": "Surplife APP RGB+WW+CW bulb WiFi+BLE E27", "chip": "BL602", "board": "BL-M5 V1.2",

delay0 commented 6 months ago

in cmd_eventHandlers.c

302 | #if defined(PLATFORM_BEKEN) \|\| defined(WINDOWS)
--
303 | CMD_Script_ProcessWaitersForEvent(eventCode, newValue);
304 | #endif
 
386 | #if defined(PLATFORM_BEKEN) \|\| defined(WINDOWS)
387 | CMD_Script_ProcessWaitersForEvent(eventCode, argument);
388 | #endif

I released and tested this for my BL602. Works with NTPState.

giedriuslt commented 6 months ago

Fixed here #1191 not sure when will be merged or builds fixed