Skip to content

Commit

Permalink
code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ruck314 committed Mar 26, 2024
1 parent b5ab962 commit 52a0e87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/surf/xilinx/_AxiPciePhy.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,11 @@ def updateLinkStatus(self):
if (self.CapabilitiesPointer.value() >= 0x40):

# Go to the Capabilities Pointer offset and get the Capabilities Express Endpoint offset
offset = self.DevSpecRegion[self.CapabilitiesPointer.value()-0x40+1].get()
offset = self.DevSpecRegion[(self.CapabilitiesPointer.value()-0x40) + 1].get()

# Capabilities Express Endpoint offset
linkStatus = self.DevSpecRegion[offset-0x40+ 0x12].get()
linkCap = self.DevSpecRegion[offset-0x40+ 0x0C].get()
linkStatus = self.DevSpecRegion[(offset-0x40) + 0x12].get()
linkCap = self.DevSpecRegion[(offset-0x40) + 0x0C].get()

# Set the link speed and width status
self.LnkStaSpeed.set( (linkStatus>>0) & 0xF )
Expand Down

0 comments on commit 52a0e87

Please sign in to comment.