change constant to macros and move RXIE enable to boot.c for portability.

This commit is contained in:
HL Yi committed 2026-10-17 16:42:39 -05:00
1 parent 424a963301
commit 6a5d3cdf2c
6 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -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;
}