| 75 | #endif |
| 76 | |
| 77 | void print(const char* str) { |
| 78 | if (!str) return; |
| 79 | // Check global log level - if NONE, suppress all output |
| 80 | if (gLogLevel == static_cast<u8>(LogLevel::FL_LOG_LEVEL_NONE)) return; |
| 81 | |
| 82 | #ifdef FASTLED_TESTING |
| 83 | // Check for injected handler first |
| 84 | if (get_print_handler()) { |
| 85 | get_print_handler()(str); |
| 86 | return; |
| 87 | } |
| 88 | #endif |
| 89 | |
| 90 | // Delegate to platform implementation |
| 91 | platforms::print(str); |
| 92 | } |
| 93 | |
| 94 | void println(const char* str) { |
| 95 | if (!str) return; |
no outgoing calls