FastLED 3.9.15
Loading...
Searching...
No Matches

◆ printEngineValidation()

void fl::validation::printEngineValidation ( )

Print validation results (logs registered drivers and status)

Definition at line 20 of file platform.cpp.hpp.

20 {
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}
fl::span< const DriverInfo > getDriverInfos() const FL_NOEXCEPT
Get full state of all registered drivers.
#define FL_WARN(X)
Definition log.h:276
#define FL_ERROR(X)
Definition log.h:219
ChannelManager & channelManager()
Get the global ChannelManager singleton instance.
#define FL_UNUSED(x)

References fl::channelManager(), FL_ERROR, FL_UNUSED, FL_WARN, and fl::ChannelManager::getDriverInfos().

Referenced by autoResearchExpectedEngines().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: