diff --git a/companion/src/firmwares/edgetx/yaml_modeldata.cpp b/companion/src/firmwares/edgetx/yaml_modeldata.cpp index 617df48b3..666d3facb 100644 --- a/companion/src/firmwares/edgetx/yaml_modeldata.cpp +++ b/companion/src/firmwares/edgetx/yaml_modeldata.cpp @@ -616,13 +616,12 @@ Node EncodeFMData(const FlightModeData& rhs, int phaseIdx) Node node; size_t n_trims = Boards::getCapability(getCurrentBoard(), Board::NumTrims); - YamlTrim yt[n_trims]; Node trims; for (size_t i=0; i - #define LV_MEM_POOL_ALLOC sbrk + #if defined(SIMU) + // 'sbrk' does not exist on Windows :( + #define LV_MEM_POOL_INCLUDE + #define LV_MEM_POOL_ALLOC malloc + #else + #define LV_MEM_POOL_INCLUDE + #define LV_MEM_POOL_ALLOC sbrk + #endif #endif #else /*LV_MEM_CUSTOM*/