|
|
@@ -1875,9 +1875,9 @@ int g_switch_set_t_ac_alarm_ctrl(void* manger,int saddr,char chn,GlobalOverManag
|
|
|
unsigned int offset = 0;
|
|
|
offset = _SWITCH_T_AC_ALARM_CTRL+chn;
|
|
|
int nStatus = 0;
|
|
|
- if(_global_over_manager->product_vol_over_upper_threshold_ctrl==1)nStatus|=BIT_00;
|
|
|
- if(_global_over_manager->product_vol_over_lower_threshold_ctrl==1)nStatus|=BIT_01;
|
|
|
- if(_global_over_manager->product_cur_over_upper_threshold_ctrl==1)nStatus|=BIT_02;
|
|
|
+ if(_global_over_manager->product_vol_over_upper_threshold_ctrl==1)nStatus|=BIT_01;
|
|
|
+ if(_global_over_manager->product_vol_over_lower_threshold_ctrl==1)nStatus|=BIT_02;
|
|
|
+ if(_global_over_manager->product_cur_over_upper_threshold_ctrl==1)nStatus|=BIT_00;
|
|
|
if(_global_over_manager->product_pwr_over_upper_threshold_ctrl==1)nStatus|=BIT_03;
|
|
|
if(_global_over_manager->product_pwrcon_over_upper_threshold_ctrl==1)nStatus|=BIT_04;
|
|
|
return g_modbus_write_reg(manger,saddr,offset,nStatus);
|