mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
Rewriting sim implementation to be data driven
The value for enabled should be an int, not a string
This commit is contained in:
1 parent
dda873a633
commit
eff3f42ae1
3 files changed
+24
-19
No files matched your search
+2
-3
@@ -755,11 +755,10 @@ void send_lldp(void)
|
||||
for (uint8_t j = 0; j < PORT_NAME_SIZE && port_names[i][j]; j++) {
|
||||
json_char_to_html(port_names[i][j]);
|
||||
}
|
||||
slen += strtox(outbuf + slen, "\"");
|
||||
|
||||
slen += strtox(outbuf + slen, ",\"enabled\":\"");
|
||||
slen += strtox(outbuf + slen, "\",\"permitted\":");
|
||||
bool_to_html(1 & (lldp_logical_port_status >> i));
|
||||
slen += strtox(outbuf + slen, "\"}");
|
||||
slen += strtox(outbuf + slen, "}");
|
||||
|
||||
if (i < machine.max_port)
|
||||
char_to_html(',');
|
||||
|
||||
Reference in new issue
Block a user