Updated to match the latest developer branch and modified according to feedback from review.

This commit is contained in:
faanskit 2021-05-05 19:02:10 +02:00
parent cbcd33fde6
commit 78e1616b4e
6 changed files with 14 additions and 17 deletions

View file

@ -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}`]];
}