|
@@ -927,9 +927,64 @@ void RefreshConnStatus()
|
|
|
// Wifi priority is higher than Ethernet
|
|
|
#if defined DD360 || defined DD360Audi
|
|
|
uint8_t i = 0;
|
|
|
- unsigned char flag[4] = {0};
|
|
|
|
|
|
for (i = 0; i < ShmSysConfigAndInfo->SysWarningInfo.WarningCount; i++) {
|
|
|
+ if (memcmp(&ShmSysConfigAndInfo->SysWarningInfo.WarningCode[i][0], "012304", 6) == 0) {
|
|
|
+ if (gAudiCustInfo->EthDevStatus.Ethernet != DEV_ST_DISABLE) {
|
|
|
+ gAudiCustInfo->EthDevStatus.Ethernet = DEV_ST_ENABLE_NO_USE;
|
|
|
+ }
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (gAudiCustInfo->EthDevStatus.Backend == DEV_ST_DISABLE) {
|
|
|
+ ChangeDisplay2Value(__conn_status, _disappear);
|
|
|
+ } else if (gAudiCustInfo->EthDevStatus.Backend == DEV_ST_ENABLE_USE) {
|
|
|
+ ChangeDisplay2Value(__conn_status, _connect);
|
|
|
+ } else if (gAudiCustInfo->EthDevStatus.Backend == DEV_ST_ENABLE_NO_USE) {
|
|
|
+ ChangeDisplay2Value(__conn_status, _disconnect);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (gAudiCustInfo->EthDevStatus.Ethernet == DEV_ST_DISABLE) {
|
|
|
+ } else if (gAudiCustInfo->EthDevStatus.Ethernet == DEV_ST_ENABLE_USE) {
|
|
|
+ ChangeDisplay2Value(__ethernet_status, _eth_connect);
|
|
|
+ } else if (gAudiCustInfo->EthDevStatus.Ethernet == DEV_ST_ENABLE_NO_USE) {
|
|
|
+ ChangeDisplay2Value(__ethernet_status, _eth_disconnect);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ if (gAudiCustInfo->EthDevStatus.Wifi == DEV_ST_DISABLE) {
|
|
|
+ ChangeDisplay2Value(__wifi_status, _disappear);
|
|
|
+
|
|
|
+ ChangeDisplay2Value(__3G4G_status, _disappear);
|
|
|
+ if (gAudiCustInfo->EthDevStatus.FourG == DEV_ST_DISABLE) {
|
|
|
+ ChangeDisplay2Value(__3G4G_move_status, _disappear);
|
|
|
+ } else if (gAudiCustInfo->EthDevStatus.FourG == DEV_ST_ENABLE_USE) {
|
|
|
+ ChangeDisplay2Value(__3G4G_move_status, __3G4G_connect);
|
|
|
+ } else if (gAudiCustInfo->EthDevStatus.FourG == DEV_ST_ENABLE_NO_USE) {
|
|
|
+ ChangeDisplay2Value(__3G4G_move_status, _3G4G_disconnect);
|
|
|
+ }
|
|
|
+ } else if (gAudiCustInfo->EthDevStatus.Wifi == DEV_ST_ENABLE_USE) {
|
|
|
+ ChangeDisplay2Value(__3G4G_move_status, _disappear);
|
|
|
+ ChangeDisplay2Value(__wifi_status, _wifi_connect);
|
|
|
+ } else if (gAudiCustInfo->EthDevStatus.Wifi == DEV_ST_ENABLE_NO_USE) {
|
|
|
+ ChangeDisplay2Value(__3G4G_move_status, _disappear);
|
|
|
+ ChangeDisplay2Value(__wifi_status, _wifi_disconnect);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (gAudiCustInfo->EthDevStatus.Wifi != DEV_ST_DISABLE) {
|
|
|
+ if (gAudiCustInfo->EthDevStatus.FourG == DEV_ST_DISABLE) {
|
|
|
+ ChangeDisplay2Value(__3G4G_status, _disappear);
|
|
|
+ } else if (gAudiCustInfo->EthDevStatus.FourG == DEV_ST_ENABLE_USE) {
|
|
|
+ ChangeDisplay2Value(__3G4G_status, __3G4G_connect);
|
|
|
+ } else if (gAudiCustInfo->EthDevStatus.FourG == DEV_ST_ENABLE_NO_USE) {
|
|
|
+ ChangeDisplay2Value(__3G4G_status, _3G4G_disconnect);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //unsigned char flag[4] = {0};
|
|
|
+
|
|
|
+ /*for (i = 0; i < ShmSysConfigAndInfo->SysWarningInfo.WarningCount; i++) {
|
|
|
//printf("status code = %s\r\n", &ShmSysConfigAndInfo->SysWarningInfo.WarningCode[i][0]);
|
|
|
if (memcmp(&ShmSysConfigAndInfo->SysWarningInfo.WarningCode[i][0], "012304", 6) == 0) {
|
|
|
flag[0] = 1;
|
|
@@ -966,6 +1021,7 @@ void RefreshConnStatus()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
if (flag[0] == 1) {
|
|
|
ChangeDisplay2Value(__ethernet_status, _eth_disconnect);
|
|
|
} else {
|
|
@@ -1010,6 +1066,7 @@ void RefreshConnStatus()
|
|
|
ChangeDisplay2Value(__3G4G_status, __3G4G_connect);
|
|
|
}
|
|
|
}
|
|
|
+ */
|
|
|
#else
|
|
|
// eth
|
|
|
if (ShmSysConfigAndInfo->SysInfo.ethInternetConn == YES) {
|