Przeglądaj źródła

修复阈值报警位置问题

chenyuanjie 2 lat temu
rodzic
commit
f89c3f2570
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      pro/src/switch_ctrl.c

+ 3 - 3
pro/src/switch_ctrl.c

@@ -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);