Browse Source

update

master
zhaohe 2 years ago
parent
commit
c0af8f6fe1
  1. 13
      src/service/device_io_control_service_test.cpp

13
src/service/device_io_control_service_test.cpp

@ -104,7 +104,6 @@ int DeviceIoControlServiceTest::heatingStrip_getcurrentValue() {
return 0;
}
//
int DeviceIoControlServiceTest::getChargingPump_PumpRPM() { return 0; }
static bool drainingPump_state;
void DeviceIoControlServiceTest::drainingPump_open() {
@ -116,23 +115,35 @@ void DeviceIoControlServiceTest::drainingPump_close() {
drainingPump_state = false;
}
static bool replenishingFluidsPump_state;
static int replenishingFluidsPump_gpm;
void DeviceIoControlServiceTest::replenishingFluidsPump_open() {
logger->info("replenishingFluidsPump_open");
replenishingFluidsPump_state = true;
replenishingFluidsPump_gpm = 20;
}
void DeviceIoControlServiceTest::replenishingFluidsPump_close() {
logger->info("replenishingFluidsPump_close");
replenishingFluidsPump_state = false;
replenishingFluidsPump_gpm = 0;
}
void DeviceIoControlServiceTest::replenishingFluidsPump_open_for_test(int gpm) {
logger->info("replenishingFluidsPump_open_for_test {}", gpm);
replenishingFluidsPump_state = true;
replenishingFluidsPump_gpm = gpm;
}
void DeviceIoControlServiceTest::replenishingFluidsPump_close_for_test() {
logger->info("replenishingFluidsPump_close_for_test");
replenishingFluidsPump_state = false;
replenishingFluidsPump_gpm = 0;
}
int DeviceIoControlServiceTest::getChargingPump_PumpRPM() {
if (replenishingFluidsPump_state) {
return replenishingFluidsPump_gpm;
}
return 0;
}
/*******************************************************************************
* sprayLiquidPump *
*******************************************************************************/

Loading…
Cancel
Save