bug fixes
This commit is contained in:
@@ -228,7 +228,7 @@ class nodeClass {
|
|||||||
case 'q_in': {
|
case 'q_in': {
|
||||||
// payload can be number or { value, unit, timestamp }
|
// payload can be number or { value, unit, timestamp }
|
||||||
const val = Number(msg.payload);
|
const val = Number(msg.payload);
|
||||||
const unit = msg?.unit || 'l/s';
|
const unit = msg?.unit;
|
||||||
const ts = msg?.timestamp || Date.now();
|
const ts = msg?.timestamp || Date.now();
|
||||||
this.source.setManualInflow(val, ts, unit);
|
this.source.setManualInflow(val, ts, unit);
|
||||||
break;
|
break;
|
||||||
|
|||||||
1350
src/specificClass.js
1350
src/specificClass.js
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user