Browse Source

添加比例阀日志输出控制

moveToEndTestVersion
zhaohe 11 months ago
parent
commit
d9faaf0e6f
  1. 2
      stm32components
  2. 5
      ucomponents/preportional_valve/preportional_valve_ctrl.cpp

2
stm32components

@ -1 +1 @@
Subproject commit 03d9638ccbc69971524957a68e51842da0960940
Subproject commit b3cae2e4945639f0148a5e3034b039f5679151e3

5
ucomponents/preportional_valve/preportional_valve_ctrl.cpp

@ -10,7 +10,10 @@ using namespace zscanprotocol;
#define OVERTIME 100
#define TAG "PreportionalValveCtrl"
void PreportionalValveCtrl::initialize(UART_HandleTypeDef* huart) { m_modbusBlockHost.initialize(huart); }
void PreportionalValveCtrl::initialize(UART_HandleTypeDef* huart) {//
m_modbusBlockHost.initialize(huart);
m_modbusBlockHost.enableDump(true);
}
int32_t PreportionalValveCtrl::writeReg06(uint8_t slaveAddr, uint16_t regAddr, uint16_t regVal) {
int32_t err = m_modbusBlockHost.writeReg06(slaveAddr, regAddr, regVal, OVERTIME);

Loading…
Cancel
Save