Skip to content

Commit

Permalink
Fixing keys
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Feb 3, 2022
1 parent cd8a6cf commit 57f3538
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Entities/FbBusConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function setAddress(?int $address): void
*/
public function getInterface(): string
{
$interface = $this->getParam('serial_interface', '/dev/ttyAMA0');
$interface = $this->getParam('interface', '/dev/ttyAMA0');

return $interface ?? '/dev/ttyAMA0';
}
Expand All @@ -96,7 +96,7 @@ public function getInterface(): string
*/
public function setinterface(?string $interface): void
{
$this->setParam('serial_interface', $interface);
$this->setParam('interface', $interface);
}

/**
Expand Down Expand Up @@ -142,7 +142,7 @@ public function toArray(): array
{
return array_merge(parent::toArray(), [
'address' => $this->getAddress(),
'serial_interface' => $this->getinterface(),
'interface' => $this->getinterface(),
'baud_rate' => $this->getBaudRate(),
'protocol' => $this->getProtocol()->getValue(),
]);
Expand Down
4 changes: 2 additions & 2 deletions src/Entities/IFbBusConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ public function setAddress(?int $address): void;
public function getInterface(): string;

/**
* @param string|null $serialInterface
* @param string|null $interface
*
* @return void
*/
public function setInterface(?string $serialInterface): void;
public function setInterface(?string $interface): void;

/**
* @return int
Expand Down

0 comments on commit 57f3538

Please sign in to comment.