Selaa lähdekoodia

modbus 三相进单相出bug ,读取传感器状态 进程退出

liyi 1 vuosi sitten
vanhempi
commit
8b74943e91
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      pro/src/cascade_slave.c

+ 2 - 2
pro/src/cascade_slave.c

@@ -189,8 +189,8 @@ int cascade_slave_init(void)
         modbus_three[TREE_R_SWITCH_STA      ].addr = &mgr->triphasic_mmap->chn_status;
         modbus_three[TREE_R_OPEN_DELAY      ].addr = &mgr->triphasic_mmap->open_delay;
         modbus_three[TREE_R_CLOSE_DELAY     ].addr = &mgr->triphasic_mmap->close_delay;
-        modbus_single[TREE_R_SENSOR         ].addr = &mgr->triphasic_mmap->cas_sensor;
-        modbus_single[TREE_R_DRY            ].addr = &mgr->triphasic_mmap->d_node;
+        modbus_three[TREE_R_SENSOR         ].addr = &mgr->triphasic_mmap->cas_sensor;
+        modbus_three[TREE_R_DRY            ].addr = &mgr->triphasic_mmap->d_node;
 
         modbus_three[TREE_W_OPEN_DELAY      ].addr = &mgr->triphasic_mmap->set_chn_open_delay;
         modbus_three[TREE_W_CLOSE_DELAY     ].addr = &mgr->triphasic_mmap->set_chn_close_delay;