|
|
@ -197,6 +197,20 @@ void DeviceIoControlService::startScan() { |
|
|
|
} |
|
|
|
#endif
|
|
|
|
|
|
|
|
#if (defined PROJECT_TYPE_PIPE_DISINFECTION)
|
|
|
|
if (i % 100 == 0) { |
|
|
|
int32_t ack0 = 0; |
|
|
|
int32_t ack1 = 0; |
|
|
|
m_zcanHost->call(kcmd_read_device_bottom_water_detection_sensor, &ack0); |
|
|
|
// m_zcanHost->call(kcmd_read_evaporation_bin_water_detection, &ack1);
|
|
|
|
|
|
|
|
m_deviceBottomWaterDetectionSensor = ack0; |
|
|
|
m_evaporationBinWaterDetection = false; |
|
|
|
|
|
|
|
// logger->info("DeviceBottomWaterDetectionSensor:{} EvaporationBinWaterDetection:{}", m_deviceBottomWaterDetectionSensor, m_evaporationBinWaterDetection);
|
|
|
|
} |
|
|
|
#endif
|
|
|
|
|
|
|
|
// kcmd_read_device_bottom_water_detection_sensor
|
|
|
|
// kcmd_read_evaporation_bin_water_detection
|
|
|
|
} |
|
|
@ -540,9 +554,9 @@ int32_t DeviceIoControlService::AirProportionalValve_isBusy(int32_t* isbusy) { |
|
|
|
#ifdef PROJECT_TYPE_PIPE_DISINFECTION
|
|
|
|
int DeviceIoControlService::airCompressor_channelSelect(int32_t val) { |
|
|
|
m_airCompressor_channelIndex = val; |
|
|
|
if (m_airCompressor_channelIndex == 1) { |
|
|
|
if (m_airCompressor_channelIndex == 1) { //
|
|
|
|
m_zcanHost->call(kcmd_air_compressor_ch_select, 1); |
|
|
|
} else if (m_airCompressor_channelIndex == 2) { |
|
|
|
} else if (m_airCompressor_channelIndex == 2) { // 气密性测试
|
|
|
|
m_zcanHost->call(kcmd_air_compressor_ch_select, 2); |
|
|
|
} else { |
|
|
|
return err::kfail; |
|
|
|