This commit is contained in:
Nav
2024-03-30 19:40:01 +00:00
parent 7393b227a8
commit bfd767da7d

View File

@@ -240,10 +240,10 @@ class TargetDescriptionFile
public function getTargetRegister(
string $peripheralKey,
array|string $groupKeys,
array|string $registerKeys
array|string $registerKey
): ?TargetRegister {
return ($peripheral = $this->getPeripheral($peripheralKey)) instanceof Peripheral
? $this->targetPeripheralFromPeripheral($peripheral)->getRegister($groupKeys, $registerKeys)
? $this->targetPeripheralFromPeripheral($peripheral)->getRegister($groupKeys, $registerKey)
: null;
}