Fix WLED_DISABLE_2D compile error

This commit is contained in:
Ewoud
2023-02-15 10:59:14 +01:00
parent 4ed1473bcc
commit 515c872770
3 changed files with 41 additions and 37 deletions

View File

@@ -189,10 +189,12 @@ float ARTI::arti_external_function(uint8_t function, float par1, float par2, flo
SEGMENT.drawLine(par1, par2, par3, par4, par5);
return floatNull;
case F_drawArc:
if (par5 == floatNull)
SEGMENT.drawArc(par1, par2, par3, par4);
else
SEGMENT.drawArc(par1, par2, par3, par4, par5); //fillColor
#ifndef WLED_DISABLE_2D
if (par5 == floatNull)
SEGMENT.drawArc(par1, par2, par3, par4);
else
SEGMENT.drawArc(par1, par2, par3, par4, par5); //fillColor
#endif
return floatNull;
case F_constrain:
return constrain(par1, par2, par3);