Skip to content

Commit 2cce4ae

Browse files
StanleyCilguohan
authored andcommitted
[device] Update ag9032v1 and ag9064 modules. (#1690)
* 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]>
1 parent fd5a3cf commit 2cce4ae

File tree

6 files changed

+2946
-2944
lines changed

6 files changed

+2946
-2944
lines changed

device/delta/x86_64-delta_ag9064-r0/plugins/sfputil.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def set_low_power_mode(self, port_num, lpmode):
120120
reg_value = reg_value & ~mask
121121

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

125125
reg_file.seek(0)
126126
reg_file.write(content)

0 commit comments

Comments
 (0)