We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6684c17 commit e91f990Copy full SHA for e91f990
node-red-node-ui-lineargauge/linear_gauge.js
@@ -160,9 +160,9 @@ module.exports = function(RED) {
160
}
161
162
var payload = msg.payload;
163
- var highLimit = msg.highlimit || 80;
164
- var lowLimit= msg.lowlimit || 20;
165
- var setpoint = msg.setpoint || 50;
+ var highLimit = msg.highlimit === 0 ? 0 : msg.highlimit || 80;
+ var lowLimit = msg.lowlimit === 0 ? 0 : msg.lowlimit || 20;
+ var setpoint = msg.setpoint === 0 ? 0 : msg.setpoint || 50;
166
var gaugeStart = 0 // this is the gauge starting position, should be left at zero
167
var gaugeEnd = 188 // this is the length of the gauge, if the gauge is to be longer, this value should be the sum of the heights of the scale areas
168
0 commit comments