This commit is contained in:
rusefi 2017-05-07 19:35:04 -04:00
parent 098e66b6bb
commit fcddd26a39
1 changed files with 2 additions and 0 deletions

View File

@ -214,6 +214,7 @@ void stopWaveAnalyzerDriver(const char *msg, brain_pin_e brainPin) {
sizeof(digital_input_s));
registeredIcus.size--;
icuDisableNotificationsI(driver);
icuStopCapture(driver);
icuStop(driver);
return;
}
@ -232,6 +233,7 @@ void startInputDriver(digital_input_s *hw, bool isActiveHigh) {
if (driver != NULL) {
if (hw->started) {
icuDisableNotificationsI(driver);
icuStopCapture(driver);
icuStop(driver);
}
wave_icucfg.channel = getInputCaptureChannel(hw->brainPin);