From 46864ca9a799e9a3190c02a9ac7d725e8c9b22bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20van=20Dorst?= Date: Thu, 15 Jan 2026 19:22:11 +0100 Subject: [PATCH] SWGT024_V2_0: Fix .phys_to_log_port, sfp-ports have to be swapped. On SWGT024_V2_0, the SFP ports are arranged differently. The port mapping should also reflect this. --- machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machine.c b/machine.c index 61daf6c..fadd346 100644 --- a/machine.c +++ b/machine.c @@ -58,7 +58,7 @@ __code const struct machine machine = { .max_port = 8, .n_sfp = 2, .log_to_phys_port = {0, 0, 0, 6, 1, 2, 3, 4, 5}, - .phys_to_log_port = {4, 5, 6, 7, 3, 8, 0, 0, 0}, + .phys_to_log_port = {4, 5, 6, 7, 8, 3, 0, 0, 0}, .is_sfp= {0, 0, 0, 2, 0, 0, 0, 0, 1}, // Left SFP port (J4) .sfp_port[0].pin_detect = 30,