|
|
@@ -1792,15 +1792,19 @@ static void channelStatusMonitoring(void* conn)
|
|
|
}
|
|
|
if (_globalPowerMangerTemp != NULL)
|
|
|
{
|
|
|
- GlobalTreeACManager *_globalTACManager = NULL;
|
|
|
- list_for_each_entry(_globalTACManager, &_globalPowerMangerTemp->list_Tree_AC, list_Tree_AC)
|
|
|
+ if (__globalDeviceManage._globalDevInfo.product_pwr_type == SmartPDU_Tree_AC_One
|
|
|
+ ||__globalDeviceManage._globalDevInfo.product_pwr_type == SmartPDU_Tree_AC_One_B|| __globalDeviceManage._globalDevInfo.product_pwr_type == SmartPDU_Tree_AC_Tree)
|
|
|
{
|
|
|
-
|
|
|
- if (g_switch_set_t_ac_phchn_reset(&__globalDeviceManage._globalRelaySampManger,_globalTACManager->product_saddr,_globalTACManager->product_ch_addr)<0)
|
|
|
+ GlobalTreeACManager *_globalTACManager = NULL;
|
|
|
+ list_for_each_entry(_globalTACManager, &_globalPowerMangerTemp->list_Tree_AC, list_Tree_AC)
|
|
|
{
|
|
|
- log_e("Error: phchn_reset");
|
|
|
+
|
|
|
+ if (g_switch_set_t_ac_phchn_reset(&__globalDeviceManage._globalRelaySampManger, _globalTACManager->product_saddr, _globalTACManager->product_ch_addr) < 0)
|
|
|
+ {
|
|
|
+ log_e("Error: phchn_reset");
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
pCHlist = strtok_r(NULL, ",", &pCHListSave);
|
|
|
}
|