From 74364ed7e89a9779b5b55d75a2f0a484972430c0 Mon Sep 17 00:00:00 2001 From: logicog Date: Fri, 12 Dec 2025 23:31:44 +0100 Subject: [PATCH] Add machine name in send_basic_info() --- httpd/page_impl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/httpd/page_impl.c b/httpd/page_impl.c index 725ccd0..0b97815 100644 --- a/httpd/page_impl.c +++ b/httpd/page_impl.c @@ -176,8 +176,9 @@ void send_basic_info(void) byte_to_html(uip_ethaddr.addr[5]); slen += strtox(outbuf + slen, "\",\"sw_ver\":\""); slen += strtox(outbuf + slen, VERSION_SW); - slen += strtox(outbuf + slen, "\",\"hw_ver\":\"SWGT024-V2.0\""); - slen += strtox(outbuf + slen, ",\"sfp_slot_0\":\""); + slen += strtox(outbuf + slen, "\",\"hw_ver\":\""); + slen += strtox(outbuf + slen, machine.machine_name); + slen += strtox(outbuf + slen, "\",\"sfp_slot_0\":\""); send_sfp_info(0); char_to_html('"'); if (machine.n_sfp == 2) {