Pārlūkot izejas kodu

[Improve][AW-CCS][main.c]
2022-07-19 / EASON YANG
Action:
1. Improve: Change uap0 to low priority.

File:
1. main.c
Action 1

FIRMWARE VERSION: B0.62.XX.XXXX.PX

8009 2 gadi atpakaļ
vecāks
revīzija
46bc666499
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      EVSE/Projects/AW-CCS/Apps/main.c

+ 3 - 0
EVSE/Projects/AW-CCS/Apps/main.c

@@ -2771,6 +2771,9 @@ void InitEthernet()
 				DEBUG_INFO("Bridge uap0 & eth0 for local power sharing by ethernet.\n");
 			}
 
+			// Change uap0 to low priority
+			system("/sbin/ifmetric uap0 1");
+
 			sleep(5);
 		}
 	}