Updated to match the latest developer branch and modified according to feedback from review.
This commit is contained in:
parent
cbcd33fde6
commit
78e1616b4e
6 changed files with 14 additions and 17 deletions
|
|
@ -42,7 +42,7 @@ class DeviceRegistry {
|
|||
Object.keys(this.inputDevices).length
|
||||
} output devices in total.`,
|
||||
);
|
||||
this.outputUniqueIdByBleOutputAddress[`${inputDevice.bleOutputAddress}_${inputDevice.input}`] = inputDevice.uniqueId;
|
||||
this.outputUniqueIdByBleOutputAddress[`${inputDevice.bleInputAddress}_${inputDevice.input}`] = inputDevice.uniqueId;
|
||||
};
|
||||
|
||||
/** @param outputDevice {import('types/DeviceRegistry').OutputDevice} */
|
||||
|
|
@ -157,7 +157,7 @@ class DeviceRegistry {
|
|||
}
|
||||
|
||||
/** @returns {import('./types/DeviceRegistry').InputDevice} */
|
||||
getInputDeviceByBleOutputAddress(bleInputAddress, inputButton) {
|
||||
getInputDeviceByBleInputAddress(bleInputAddress, inputButton) {
|
||||
return this.inputDevices[this.outputUniqueIdByBleOutputAddress[`${bleInputAddress}_${inputButton}`]];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue