Skip to content

Commit

Permalink
Remove Nmt#state setter in favor of Nmt#setState()
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsw committed Jan 30, 2024
1 parent 479f275 commit 99b8279
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions source/protocol/nmt.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,6 @@ class Nmt extends Protocol {
return this._state;
}

set state(value) {
this.setState(value);
}

/**
* Get object 0x1017 - Producer heartbeat time.
*
Expand Down Expand Up @@ -298,7 +294,7 @@ class Nmt extends Protocol {
this.addEdsCallback('newEntry', (obj) => this._addEntry(obj));
this.addEdsCallback('removeEntry', (obj) => this._removeEntry(obj));

this.state = NmtState.PRE_OPERATIONAL;
this.setState(NmtState.PRE_OPERATIONAL);
}

/**
Expand All @@ -318,7 +314,7 @@ class Nmt extends Protocol {
if(obj1017)
this._removeEntry(obj1017);

this.state = NmtState.INITIALIZING;
this.setState(NmtState.INITIALIZING);
}

/**
Expand Down

0 comments on commit 99b8279

Please sign in to comment.