|
|
@ -75,6 +75,8 @@ void DisinfectionApp::initialize() { |
|
|
|
airComCtrler.open(GET_PARAM(0)); |
|
|
|
zcanbus_send_ack(cxt->packet, NULL, 0); |
|
|
|
}); |
|
|
|
REG_LAMADA_FN(kfn_air_tightness_test_ac_is_open, [&](ProcessContext* cxt) { zcanbus_send_ack(cxt->packet, airComCtrler.isOpen()); }); |
|
|
|
|
|
|
|
} else if (isBoardType(kDrawBarDMLiquidCtrlBoard)) { |
|
|
|
static ZGPIO airCompressorCtrlGpio; |
|
|
|
airCompressorCtrlGpio.initAsOutput(PD15, kxs_gpio_nopull, true, false); |
|
|
@ -82,6 +84,7 @@ void DisinfectionApp::initialize() { |
|
|
|
airCompressorCtrlGpio.write(GET_PARAM(0)); |
|
|
|
zcanbus_send_ack(cxt->packet, NULL, 0); |
|
|
|
}); |
|
|
|
REG_LAMADA_FN(kfn_air_tightness_test_ac_is_open, [&](ProcessContext* cxt) { zcanbus_send_ack(cxt->packet, airCompressorCtrlGpio.read()); }); |
|
|
|
} |
|
|
|
|
|
|
|
// H2O2传感器
|
|
|
|