Skip to content

Commit

Permalink
opae.admin.fpga: Fix fme.bmcfw_version() bmcfw_flash_ctrl is not in s…
Browse files Browse the repository at this point in the history
…ysfs path

Signed-off-by: Roger Christensen <rc@silicom.dk>
  • Loading branch information
rchriste1 committed Jul 13, 2023
1 parent 3b20a50 commit 6ca6db7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/opae.admin/opae/admin/fpga.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,13 @@ def max10_version(self):
def bmcfw_version(self):
spi = self.spi_bus
if spi:
node = spi.find_one('bmcfw_flash_ctrl/bmcfw_version')
node = spi.find_one('bmcfw_version')
value = int(node.value, 16)
return max10_or_nios_version(value)
else:
pmci = self.pmci_bus
if pmci:
node = spi.find_one('bmcfw_flash_ctrl/bmcfw_version')
node = spi.find_one('bmcfw_version')
value = int(node.value, 16)
return max10_or_nios_version(value)

Expand Down

0 comments on commit 6ca6db7

Please sign in to comment.