From 1c88cdd0a8f32678e8b647e51e4abb588d86976f Mon Sep 17 00:00:00 2001 From: Christian Schwinne Date: Sun, 21 Jan 2024 11:11:18 +0100 Subject: [PATCH] compiling --- wled00/FX.cpp | 9 +++++---- wled00/wasmfx.cpp | 4 ++-- wled00/ws.cpp | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/wled00/FX.cpp b/wled00/FX.cpp index 8e36c0089..ebe676675 100644 --- a/wled00/FX.cpp +++ b/wled00/FX.cpp @@ -88,15 +88,16 @@ static const char _data_FX_MODE_STATIC[] PROGMEM = "Solid"; /* * Custom mode. Executes WebAssembly fx() function */ -uint16_t WS2812FX::mode_custom(void) { +uint16_t mode_custom(void) { if (SEGENV.call == 0) wasmfx.init(); wasmfx.run(); return 1; } +static const char _data_FX_MODE_CUSTOM[] PROGMEM = "Custom"; // TODO special case dependant on values actually used in FX //testing TEMP -uint16_t WS2812FX::mode_benchmark(void) { +/*uint16_t mode_benchmark(void) { uint32_t i=(now/4); uint32_t c=0; while(cindex == 0){ //if (!wsFrameBuffer && len < 4096) wsFrameBuffer = new uint8_t[4096];