From c0f6b8a1a68ac87709bef143328f976de8c2d9bd Mon Sep 17 00:00:00 2001 From: UAb5eSMn <5942222+UAb5eSMn@users.noreply.github.com> Date: Sun, 29 Mar 2026 20:10:56 +0200 Subject: [PATCH 1/2] Fix compilation error for machine HG0402XG_V1_1 --- machine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/machine.c b/machine.c index b3a10b0..1401415 100644 --- a/machine.c +++ b/machine.c @@ -270,12 +270,12 @@ __code const struct machine machine = { .sfp_port[0].pin_los = 10, .sfp_port[0].pin_tx_disable = 0xFF, .sfp_port[0].sds = 1, - .sfp_port[0].i2c_bus ={ .sda = GPIO41_I2C_SDA3_MDIO1, .scl = GPIO40_I2C_SCL3_MDC1 }, + .sfp_port[0].i2c = { .sda = GPIO41_I2C_SDA3_MDIO1, .scl = GPIO40_I2C_SCL3_MDC1 }, .sfp_port[1].pin_detect = 30, .sfp_port[1].pin_los = 51, .sfp_port[1].pin_tx_disable = 0xFF, .sfp_port[1].sds = 0, - .sfp_port[1].i2c_bus = { .sda = GPIO39_I2C_SDA4, .scl = GPIO40_I2C_SCL3_MDC1 }, + .sfp_port[1].i2c = { .sda = GPIO39_I2C_SDA4, .scl = GPIO40_I2C_SCL3_MDC1 }, .reset_pin = GPIO_NA, .high_leds = { .mux = LED_27 , .enable = LED_27 | LED_29 }, .port_led_set = { 0, 0, 0, 1, 0, 0, 0, 0, 1}, From 7d4ccf8f23b3bf70d28c16586b902a73a756d981 Mon Sep 17 00:00:00 2001 From: UAb5eSMn <5942222+UAb5eSMn@users.noreply.github.com> Date: Sun, 29 Mar 2026 20:10:56 +0200 Subject: [PATCH 2/2] Remove machine HORACO_ZX_SG4T2 from comment --- machine.h | 1 - 1 file changed, 1 deletion(-) diff --git a/machine.h b/machine.h index 1540c41..25d1961 100644 --- a/machine.h +++ b/machine.h @@ -12,7 +12,6 @@ // #define MACHINE_KP_9000_9XHML_X // #define MACHINE_SWGT024_V2_0_MANAGED // #define MACHINE_SWGT024_V2_0_UNMANAGED -// #define MACHINE_HORACO_ZX_SG4T2 // #define MACHINE_TRENDNET_TEG_S562 // #define MACHINE_HG0402XG_V1_1 // #define MACHINE_SWTG018AS_A_V_2_0