From 34bed44a9bf16df571c547b27cbd9152872d3c9e Mon Sep 17 00:00:00 2001 From: Woody Date: Wed, 25 Oct 2023 18:33:31 +0200 Subject: [PATCH] Hide 2D Configuration if 2D is not compiled in --- wled00/xml.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wled00/xml.cpp b/wled00/xml.cpp index 23de8179..cfa718bf 100644 --- a/wled00/xml.cpp +++ b/wled00/xml.cpp @@ -238,8 +238,8 @@ void getSettingsJS(byte subPage, char* dest) if (subPage == SUBPAGE_MENU) { - #ifndef WLED_DISABLE_2D // include only if 2D is compiled in - oappend(PSTR("gId('2dbtn').style.display='';")); + #ifdef WLED_DISABLE_2D // include only if 2D is not compiled in + oappend(PSTR("gId('2dbtn').style.display='none';")); #endif #ifdef WLED_ENABLE_DMX // include only if DMX is enabled oappend(PSTR("gId('dmxbtn').style.display='';"));