Skip to content

Commit

Permalink
[device] Update ag9032v1 and ag9064 modules. (#1690)
Browse files Browse the repository at this point in the history
* Update ag9032v1 and ag9064 modules.

Signed-off-by: neal tai <[email protected]>

* Fix the sfputil.py when convert an integer to hexadecimal without the 'L' trailing.

Signed-off-by: neal tai <[email protected]>
  • Loading branch information
StanleyCi authored and lguohan committed Sep 1, 2018
1 parent fd5a3cf commit 2cce4ae
Show file tree
Hide file tree
Showing 6 changed files with 2,946 additions and 2,944 deletions.
2 changes: 1 addition & 1 deletion device/delta/x86_64-delta_ag9064-r0/plugins/sfputil.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def set_low_power_mode(self, port_num, lpmode):
reg_value = reg_value & ~mask

# Convert our register value back to a hex string and write back
content = hex(reg_value)
content = hex(reg_value).rstrip("L") or "0"

reg_file.seek(0)
reg_file.write(content)
Expand Down
Loading

0 comments on commit 2cce4ae

Please sign in to comment.