From efa8553bbfa1ea948f7968d52a76661e7685dc62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Mon, 27 Mar 2017 17:47:33 +0200 Subject: [PATCH] Fix bug in current calibration parameter from the web interface casting to int instead of float --- code/espurna/web.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }