mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
Make sure port is not called for an SFP module
This commit is contained in:
1 parent
0197c9b6cf
commit
b41452026f
2 files changed
+4
-1
No files matched your search
@@ -415,6 +415,10 @@ void parse_port(void)
|
||||
uint8_t p = cmd_buffer[cmd_words_b[1]] - '1';
|
||||
p = machine.phys_to_log_port[p];
|
||||
print_byte(p);
|
||||
if (machine.is_sfp[p]) {
|
||||
print_string(" is SFP no PHY information available.\n");
|
||||
return;
|
||||
}
|
||||
if (cmd_words_b[2] > 0 && cmd_compare(2, "10m")) {
|
||||
print_string(" 10M\n");
|
||||
phy_set_speed(p, PHY_SPEED_10M);
|
||||
|
||||
Reference in new issue
Block a user