Skip to content

Commit

Permalink
Fix a possible typo
Browse files Browse the repository at this point in the history
  • Loading branch information
peternewman authored Aug 9, 2023
1 parent b1c6637 commit 2c15018
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 2c15018

Please sign in to comment.