From c8fbac9c329d0a5716146f8a3fdfe19a62288bcf Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Fri, 25 Sep 2020 11:04:22 +0200 Subject: [PATCH] Fix compilation --- tasmota/xdrv_10_scripter.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/xdrv_10_scripter.ino b/tasmota/xdrv_10_scripter.ino index 3c675f6dc..8f5181914 100755 --- a/tasmota/xdrv_10_scripter.ino +++ b/tasmota/xdrv_10_scripter.ino @@ -5570,8 +5570,8 @@ void Script_Handle_Hue(String *path) { JsonParserToken tok_y = arr_xy[1]; x = tok_x.getFloat(); y = tok_y.getFloat(); - const char * x_str = tok_x.getStr(); - const char * y_str = tok_y.getStr(); + String x_str = tok_x.getStr(); + String y_str = tok_y.getStr(); uint8_t rr,gg,bb; LightStateClass::XyToRgb(x, y, &rr, &gg, &bb); LightStateClass::RgbToHsb(rr, gg, bb, &hue, &sat, nullptr);