From 5b3b6e88542d811a2799320c4d0da2e4ea040b77 Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 26 Dec 2013 01:18:15 +0100 Subject: always trigger updateValue event --- htdocs/webiopi.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/webiopi.js b/htdocs/webiopi.js index 568bbb0..2d4e90f 100644 --- a/htdocs/webiopi.js +++ b/htdocs/webiopi.js @@ -215,8 +215,7 @@ WebIOPi.prototype.updateValue = function (gpio, value) { w().GPIO[gpio].value = value; var style = (value == 1) ? "HIGH" : "LOW"; $("#gpio"+gpio).attr("class", style); - if (old_value != value) - $("#gpio"+gpio).trigger("updateValue", [ gpio, old_value, value ]) + $("#gpio"+gpio).trigger("updateValue", [ gpio, old_value, value ]) } WebIOPi.prototype.updateFunction = function (gpio, func) { -- cgit v1.2.3