led: remove incorrect precision lookup that breaks the widget when using floats
This commit is contained in:
parent
3da297bf71
commit
4189e54399
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue