diff --git a/code/espurna/web.ino b/code/espurna/web.ino index a8327b71..08a37c4f 100644 --- a/code/espurna/web.ino +++ b/code/espurna/web.ino @@ -188,7 +188,7 @@ void _wsParse(uint32_t client_id, uint8_t * payload, size_t length) { } if (key == "powExpectedCurrent") { - powSetExpectedCurrent(value.toInt()); + powSetExpectedCurrent(value.toFloat()); changed = true; }