MCPcopy Create free account
hub / github.com/FastLED/FastLED / updateUiComponents

Method updateUiComponents

src/platforms/shared/ui/json/ui_manager.cpp.hpp:153–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void JsonUiManager::updateUiComponents(const char* jsonStr) FL_NOEXCEPT {
154 //FL_WARN("*** JsonUiManager::updateUiComponents ENTRY ***");
155 // FL_WARN("*** INCOMING JSON: " << (jsonStr ? jsonStr : "nullptr"));
156 // FL_WARN("*** JSON LENGTH: " << (jsonStr ? strlen(jsonStr) : 0));
157 // FL_WARN("*** CURRENT COMPONENT COUNT: " << mComponents.size());
158
159 if (!jsonStr) {
160 FL_ASSERT(false, "*** JsonUiManager::updateUiComponents: nullptr JSON string provided");
161 return;
162 }
163
164 // FL_WARN("*** BACKEND RECEIVED UI UPDATE: " << (jsonStr ? jsonStr : "nullptr"));
165 // FL_WARN("*** JsonUiManager pointer: " << this);
166 // FL_WARN("*** BEFORE: mHasPendingUpdate=" << (mHasPendingUpdate ? "true" : "false"));
167
168 mPendingJsonUpdate = fl::json::parse(jsonStr);
169 mHasPendingUpdate = true;
170 // FL_WARN("*** AFTER: mHasPendingUpdate=" << (mHasPendingUpdate ? "true" : "false"));
171 // FL_WARN("*** BACKEND SET mHasPendingUpdate = true, waiting for onEndFrame()");
172}
173
174
175void JsonUiManager::executeUiUpdates(const fl::json &doc) FL_NOEXCEPT {

Callers 1

setJsonUiHandlersFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected