mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
Merge pull request #355 from bloqaudio/fix/l2-static-display
httpd: read the static flag of an L2 entry from the byte that holds it
This commit is contained in:
+1
-1
@@ -397,7 +397,7 @@ void send_l2(uint16_t idx)
|
|||||||
|
|
||||||
// type
|
// type
|
||||||
reg_read_m(RTL837x_L2_DATA_OUT_C);
|
reg_read_m(RTL837x_L2_DATA_OUT_C);
|
||||||
if (sfr_data[2] & 0x1)
|
if (sfr_data[1] & 0x1)
|
||||||
slen += strtox(outbuf + slen, "\",\"type\":\"s\",\"port\":");
|
slen += strtox(outbuf + slen, "\",\"type\":\"s\",\"port\":");
|
||||||
else
|
else
|
||||||
slen += strtox(outbuf + slen, "\",\"type\":\"l\",\"port\":");
|
slen += strtox(outbuf + slen, "\",\"type\":\"l\",\"port\":");
|
||||||
|
|||||||
Reference in New Issue
Block a user