@brief Optimized readSerialLine for fl:: serial input @param serial SerialReader adapter (unused, for API consistency) @param delimiter Line delimiter character (default: '\n') @param timeoutMs Optional timeout in milliseconds (nullopt = wait forever) @return Optional string containing the line (without delimiter), or nullopt if timeout @note Delegates to normalized fl::readLine() API with default
| 80 | /// @return Optional string containing the line (without delimiter), or nullopt if timeout |
| 81 | /// @note Delegates to normalized fl::readLine() API with default skipChar='\r' |
| 82 | inline fl::optional<fl::string> readSerialLine(SerialReader& serial, char delimiter = '\n', fl::optional<u32> timeoutMs = fl::nullopt) { |
| 83 | (void)serial; // Unused, we call fl::readLine() directly |
| 84 | return fl::readLine(delimiter, '\r', timeoutMs); |
| 85 | } |
| 86 | |
| 87 | /// @brief Serial adapter using fl:: output functions (fl::println) |
| 88 | /// @note Works across all FastLED platforms |
nothing calls this directly
no test coverage detected