| 61 | static const char* DEFAULT_PAYLOAD_PATH = ".build/decode_payload.json"; |
| 62 | |
| 63 | static const char* getPayloadPath() { |
| 64 | const char* env = ::getenv("FASTLED_DECODE_PAYLOAD"); |
| 65 | if (env && env[0]) { |
| 66 | return env; |
| 67 | } |
| 68 | return DEFAULT_PAYLOAD_PATH; |
| 69 | } |
| 70 | |
| 71 | static fl::string readFileToString(const char* path) { |
| 72 | fl::FILE* f = fl::fopen(path, "rb"); |
no test coverage detected