Skip to content

Commit

Permalink
Bugfix onCanMsgInt(msg)
Browse files Browse the repository at this point in the history
  • Loading branch information
MyHomeMyData committed Nov 29, 2023
1 parent ec19182 commit e7d9177
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,18 @@ class E3oncan extends utils.Adapter {
onCanMsgExt(msg) {
if ( (this.e380Collect) && (this.e380Collect.canID.includes(msg.id)) ) { this.e380Collect.msgCollect(this, msg); }
for (let i=0; i<this.E3CollectExt.length;i++) {
if ( (this.E3CollectExt[i]) && (this.E3CollectExt[i].canID.includes(msg.id)) ) { this.E3CollectExt[i].msgCollect(this, msg); }
if ( (this.E3CollectExt[i]) && (this.E3CollectExt[i].canID.includes(msg.id)) ) {
this.E3CollectExt[i].msgCollect(this, msg);
}
}
}

onCanMsgInt(msg) {
for (let i=0; i<this.E3CollectInt.length;i++) {
if ( (this.E3CollectInt[i]) && (this.E3CollectInt[i].canID.includes(msg.id)) ) {
this.E3CollectInt[i].msgCollect(this, msg);
}
}
}
}

Expand Down

0 comments on commit e7d9177

Please sign in to comment.