mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
Merge pull request #295 from sempr/main
Fix rate range for SDS_10GR return value
This commit is contained in:
+1
-1
@@ -1210,7 +1210,7 @@ static inline uint8_t sfp_rate_to_sds_config(register uint8_t rate)
|
|||||||
return SDS_1000BX_FIBER;
|
return SDS_1000BX_FIBER;
|
||||||
if (rate >= 0x19 && rate <= 0x20) // Ethernet 2.5 GBit
|
if (rate >= 0x19 && rate <= 0x20) // Ethernet 2.5 GBit
|
||||||
return SDS_HSG;
|
return SDS_HSG;
|
||||||
if (rate >= 0x63 && rate < 0x70)
|
if (rate >= 0x62 && rate < 0x70)
|
||||||
return SDS_10GR;
|
return SDS_10GR;
|
||||||
return 0xff;
|
return 0xff;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user