Fixed esp_now_init(), added message queue to not block the callback function
This commit is contained in:
@@ -294,7 +294,7 @@ extern "C" void app_main()
|
||||
espgui::switchScreen<StatusDisplay>();
|
||||
#endif
|
||||
#ifdef FEATURE_ESPNOW
|
||||
espnow::initESPNow();
|
||||
espnow::initESPNow();
|
||||
#endif
|
||||
|
||||
while (true)
|
||||
@@ -412,6 +412,10 @@ extern "C" void app_main()
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef FEATURE_ESPNOW
|
||||
espnow::handle();
|
||||
#endif
|
||||
|
||||
#ifdef FEATURE_CLOUD
|
||||
if (!lastCloudCollect || now - *lastCloudCollect >= std::chrono::milliseconds{settings.boardcomputerHardware.timersSettings.cloudCollectRate})
|
||||
{
|
||||
|
Reference in New Issue
Block a user