mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
Compare commits
4
Commits
80095ba617
...
52cf759bec
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
52cf759bec | ||
|
|
cbbc6160f4 | ||
|
|
a8d3b7d39a | ||
|
|
a3d1a35e2f |
+1
-1
@@ -529,7 +529,7 @@ void parse_ingress(void)
|
|||||||
if (!isnumber(p)) {
|
if (!isnumber(p)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (p - '1' > 9) {
|
if (p < '1') {
|
||||||
print_string("Invalid physical port number: "); write_char(p); write_char('\n');
|
print_string("Invalid physical port number: "); write_char(p); write_char('\n');
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
+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