mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
The tick rate has been changed now so we'll have to approximate
timing with ticks Fixing up the log_to_phys_port assignment 2000 is about every 10 seconds, so scaling up to once every 30ish Removing the attempt to block lldp frames, This does not work however the hard work has been done for us in the #514 so we can borrow that work later on
This commit is contained in:
1 parent
2dfe531fe0
commit
9b2bd7f1b8
8 files changed
+16
-22
No files matched your search
+2
-2
@@ -49,7 +49,7 @@ extern __xdata char sfp_module_model[2][17];
|
||||
extern __xdata char sfp_module_serial[2][17];
|
||||
extern __xdata uint8_t sfp_options[2];
|
||||
|
||||
extern __xdata uint16_t lldp_physical_port_status;
|
||||
extern __xdata uint16_t lldp_logical_port_status;
|
||||
extern __xdata bool lldp_enabled;
|
||||
|
||||
__code const uint8_t * __code const HTTP_RESPONCE_JSON = "HTTP/1.1 200 OK\r\nConnection: close\r\nContent-Type: application/json\r\n\r\n";
|
||||
@@ -746,7 +746,7 @@ void send_lldp(void)
|
||||
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);
|
||||
bool_to_html((1 << port) & lldp_logical_port_status);
|
||||
slen += strtox(outbuf + slen, ",");
|
||||
}
|
||||
slen--; //overwrite the last comma
|
||||
|
||||
Reference in new issue
Block a user