Convert to fl::task::Error for interop with existing FastLED code.
| 53 | |
| 54 | /// Convert to fl::task::Error for interop with existing FastLED code. |
| 55 | fl::task::Error to_error() const { |
| 56 | if (ok()) { |
| 57 | return fl::task::Error(); |
| 58 | } |
| 59 | return fl::task::Error(message); |
| 60 | } |
| 61 | |
| 62 | /// Convert from platform errno value. |
| 63 | static error_code from_errno(int platform_errno); |