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

+1 -1
View File
@@ -459,7 +459,7 @@ void send_lldp(int s)
char *header = "HTTP/1.1 200 OK\r\n"
"Content-Type: application/json; charset=UTF-8\r\n\r\n";
char *body = "{\"on\": true, \"port_status\":[true,true,false,true,true,true,true,false,false]}";
char *body = "{\"on\": 1,\"port_status\":[1,1,0,1,1,1,1,0,0]}";
write(s, header, strlen(header));
write(s, body, strlen(body));