Convert from fl::task::Error for interop with existing FastLED code.
| 45 | |
| 46 | /// Convert from fl::task::Error for interop with existing FastLED code. |
| 47 | static error_code from_error(const fl::task::Error &e) { |
| 48 | if (e.is_empty()) { |
| 49 | return error_code(); |
| 50 | } |
| 51 | return error_code(errc::unknown, e.message); |
| 52 | } |
| 53 | |
| 54 | /// Convert to fl::task::Error for interop with existing FastLED code. |
| 55 | fl::task::Error to_error() const { |
nothing calls this directly
no test coverage detected