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

Function printEngineValidation

src/fl/channels/detail/validation/platform.cpp.hpp:20–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20void printEngineValidation() {
21 auto infos = channelManager().getDriverInfos();
22
23 if (infos.empty()) {
24 FL_ERROR("[VALIDATION] No drivers registered with ChannelManager!");
25 return;
26 }
27
28 FL_WARN("\n[VALIDATION] Registered drivers: " << infos.size());
29 for (fl::size i = 0; i < infos.size(); i++) {
30 const auto& info = infos[i];
31 FL_UNUSED(info); // silences -Wunused-variable when FL_WARN is a no-op
32 FL_WARN(" - " << info.name.c_str()
33 << " (priority=" << info.priority
34 << ", enabled=" << (info.enabled ? "true" : "false")
35 << ")");
36 }
37 FL_WARN("[VALIDATION] Driver registration OK");
38}
39
40} // namespace validation
41} // namespace fl

Callers 1

Calls 4

getDriverInfosMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected