FastLED 3.10.8
Loading...
Searching...
No Matches

◆ printEngineValidation()

void fl::validation::printEngineValidation ( )

Print validation results (logs registered drivers and status)

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

21 {
22 auto infos = channelManager().getDriverInfos();
23
24 if (infos.empty()) {
25 FL_ERROR("[VALIDATION] No drivers registered with ChannelManager!");
26 return;
27 }
28
29 FL_WARN("\n[VALIDATION] Registered drivers: " << infos.size());
30 for (fl::size i = 0; i < infos.size(); i++) {
31 const auto& info = infos[i];
32 FL_UNUSED(info); // silences -Wunused-variable when FL_WARN is a no-op
33 FL_WARN(" - " << info.name.c_str() << " (priority=" << info.priority << ", enabled=" << ((info.enabled ? "true" : "false")) << ")");
34 }
35 FL_WARN("[VALIDATION] Driver registration OK");
36}
fl::span< const DriverInfo > getDriverInfos() const FL_NO_EXCEPT
Get full state of all registered drivers.
#define FL_UNUSED(x)
#define FL_WARN(...)
Definition log.h:437
#define FL_ERROR(...)
Definition log.h:373
ChannelManager & channelManager() FL_NO_EXCEPT
Get the global ChannelManager singleton instance.

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

+ Here is the call graph for this function: