Fixing missing parts to make the tests pass

boot_to_html outputs 1 and 0 not true and false, making the sim match
the real implementation.
lldp.json has a hanging , in the array; so overwriting it
This commit is contained in:
Rob Emery committed 2026-10-10 09:50:27 +01:00
1 parent 72c2625121
commit 2dfe531fe0
4 files changed
+7 -5

No files matched your search

+2 -4
View File
@@ -743,18 +743,16 @@ void send_lldp(void)
slen += strtox(outbuf + slen, "{\"on\":");
bool_to_html(lldp_enabled);
slen += strtox(outbuf + slen, ",\"port_status\": [");
slen += strtox(outbuf + slen, ",\"port_status\":[");
for (uint8_t port = machine.min_port; port <= machine.max_port; port++) {
bool_to_html((1 << machine.log_to_phys_port[port]) & lldp_physical_port_status);
slen += strtox(outbuf + slen, ",");
}
slen--; //overwrite the last comma
slen += strtox(outbuf + slen, "]}");
}
void send_eee(void)
{
dbg_string("send_eee called\nsending EEE status\n");