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