Make sure port is not called for an SFP module

This commit is contained in:
logicog
2025-12-14 12:17:53 +01:00
parent 0197c9b6cf
commit b41452026f
2 changed files with 4 additions and 1 deletions
+4
View File
@@ -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);