Corrected offset bug with target register group references, in TDF scripts
This commit is contained in:
@@ -83,6 +83,9 @@ class TargetDescriptionFile
|
|||||||
return $this->deviceAttributesByName['vendor'] ?? null;
|
return $this->deviceAttributesByName['vendor'] ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return TargetPhysicalInterface[]
|
||||||
|
*/
|
||||||
public function getSupportedPhysicalInterfaces(): array
|
public function getSupportedPhysicalInterfaces(): array
|
||||||
{
|
{
|
||||||
return array_filter(array_map(
|
return array_filter(array_map(
|
||||||
@@ -91,6 +94,9 @@ class TargetDescriptionFile
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return TargetPhysicalInterface[]
|
||||||
|
*/
|
||||||
public function getSupportedDebugPhysicalInterfaces(): array
|
public function getSupportedDebugPhysicalInterfaces(): array
|
||||||
{
|
{
|
||||||
return array_filter(
|
return array_filter(
|
||||||
@@ -333,7 +339,7 @@ class TargetDescriptionFile
|
|||||||
$subgroupReference->name,
|
$subgroupReference->name,
|
||||||
$addressSpaceKey,
|
$addressSpaceKey,
|
||||||
$subgroup,
|
$subgroup,
|
||||||
$addressOffset,
|
$addressOffset + $subgroupReference->offset,
|
||||||
$moduleKey
|
$moduleKey
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user