mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
change constant to macros and move RXIE enable to boot.c for portability.
This commit is contained in:
1 parent
424a963301
commit
6a5d3cdf2c
6 files changed
+5
-5
No files matched your search
+1
-1
@@ -57,7 +57,7 @@ void port_mirror_del(void) __banked
|
||||
|
||||
bool port_ingress_filter(__xdata uint8_t port, __xdata vlan_ingress_mode_t type) __banked
|
||||
{
|
||||
if (port > 9 || type >= VLAN_INVALID) {
|
||||
if (port > CPU_PORT || type >= VLAN_INVALID) {
|
||||
print_string("Invalid port or ingress filter type\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user