led: remove incorrect precision lookup that breaks the widget when using floats

This commit is contained in:
jean-emmanuel 2016-11-23 14:41:16 +01:00
parent 3da297bf71
commit 4189e54399

View file

@ -33,7 +33,7 @@ module.exports.create = function(widgetData,container) {
widget.setValue = function(v){
if (typeof v != 'number') return
led.css('opacity',mapToScale(v,[range.min,range.max],[0,1],widgetData.precision,widgetData.logScale,true))
led.css('opacity',mapToScale(v,[range.min,range.max],[0,1],false,widgetData.logScale,true))
}
widget.setValue(range.min)