Merge pull request #175 from logicog/ZX310S-4T2XH

10GBit Ethernet Switch support (Horaco ZX310S-4T2XH)
This commit is contained in:
René van Dorst authored and GitHub committed 2026-05-02 17:22:52 +00:00
commit 09d90d6d97
18 files changed
+399 -60

No files matched your search

+9 -7
View File
@@ -248,14 +248,16 @@ void send_basic_info(void)
slen += strtox(outbuf + slen, "\",\"flash_size\":\"");
string_to_html(get_flash_size_str());
slen += strtox(outbuf + slen, "\",\"sfp_slot_0\":\"");
send_sfp_info(0);
char_to_html('"');
if (machine.n_sfp == 2) {
slen += strtox(outbuf + slen, ",\"sfp_slot_1\":\"");
send_sfp_info(1);
char_to_html('"');
if (machine.n_sfp) {
slen += strtox(outbuf + slen, "\",\"sfp_slot_0\":\"");
send_sfp_info(0);
if (machine.n_sfp == 2) {
slen += strtox(outbuf + slen, "\",\"sfp_slot_1\":\"");
send_sfp_info(1);
}
}
char_to_html('"');
char_to_html('}');
}