Skip to content

Commit

Permalink
Merge pull request #88 from peternewman/peternewman-unidId
Browse files Browse the repository at this point in the history
Fix a possible typo
  • Loading branch information
nytamin authored Aug 21, 2023
2 parents 9de5116 + 2c15018 commit f0c9c98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/xkeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class XKeys extends EventEmitter {
private _initialized = false
private _firmwareVersion = 0 // is set after init()
private _firmwareVersionIsSet = false
private _unidId = 0 // is set after init()
private _unitId = 0 // is set after init()
private _unitIdIsSet = false
private _disconnected = false

Expand Down Expand Up @@ -160,7 +160,7 @@ export class XKeys extends EventEmitter {
if (genData) {
// Note, the generateData is used to get the full state

this._unidId = UID
this._unitId = UID
this._unitIdIsSet = true

this.receivedGenerateDataResolve?.()
Expand Down Expand Up @@ -361,7 +361,7 @@ export class XKeys extends EventEmitter {
* From factory it's set to 0, but it can be changed using this.setUnitId()
*/
public get unitId(): number {
return this._unidId
return this._unitId
}
/** Various information about the device and its capabilities */
public get info(): XKeysInfo {
Expand Down Expand Up @@ -585,7 +585,7 @@ export class XKeys extends EventEmitter {
}

this._write([0, 189, unitId])
this._unidId = unitId
this._unitId = unitId
}
/**
* Reboots the device
Expand Down

0 comments on commit f0c9c98

Please sign in to comment.