Hide 2D if not compiled.

This commit is contained in:
Blaz Kristan
2023-01-16 22:09:43 +01:00
parent ef6a9184ba
commit dd08751f3f
3 changed files with 56 additions and 53 deletions

View File

@@ -287,6 +287,9 @@ void getSettingsJS(byte subPage, char* dest)
if (subPage == 0)
{
#ifndef WLED_DISABLE_2D // include only if 2D is compiled in
oappend(PSTR("gId('2dbtn').style.display='';"));
#endif
#ifdef WLED_ENABLE_DMX // include only if DMX is enabled
oappend(PSTR("gId('dmxbtn').style.display='';"));
#endif