diff --git a/stm32components b/stm32components index 03d9638..b3cae2e 160000 --- a/stm32components +++ b/stm32components @@ -1 +1 @@ -Subproject commit 03d9638ccbc69971524957a68e51842da0960940 +Subproject commit b3cae2e4945639f0148a5e3034b039f5679151e3 diff --git a/ucomponents/preportional_valve/preportional_valve_ctrl.cpp b/ucomponents/preportional_valve/preportional_valve_ctrl.cpp index 6c0421e..6117e74 100644 --- a/ucomponents/preportional_valve/preportional_valve_ctrl.cpp +++ b/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);