Add machine name in send_basic_info()

This commit is contained in:
logicog
2025-12-13 22:22:40 +01:00
parent e6cf97b895
commit 74364ed7e8
+3 -2
View File
@@ -176,8 +176,9 @@ void send_basic_info(void)
byte_to_html(uip_ethaddr.addr[5]); byte_to_html(uip_ethaddr.addr[5]);
slen += strtox(outbuf + slen, "\",\"sw_ver\":\""); slen += strtox(outbuf + slen, "\",\"sw_ver\":\"");
slen += strtox(outbuf + slen, VERSION_SW); slen += strtox(outbuf + slen, VERSION_SW);
slen += strtox(outbuf + slen, "\",\"hw_ver\":\"SWGT024-V2.0\""); slen += strtox(outbuf + slen, "\",\"hw_ver\":\"");
slen += strtox(outbuf + slen, ",\"sfp_slot_0\":\""); slen += strtox(outbuf + slen, machine.machine_name);
slen += strtox(outbuf + slen, "\",\"sfp_slot_0\":\"");
send_sfp_info(0); send_sfp_info(0);
char_to_html('"'); char_to_html('"');
if (machine.n_sfp == 2) { if (machine.n_sfp == 2) {