fix #410
This commit is contained in:
parent
098e66b6bb
commit
fcddd26a39
|
@ -214,6 +214,7 @@ void stopWaveAnalyzerDriver(const char *msg, brain_pin_e brainPin) {
|
||||||
sizeof(digital_input_s));
|
sizeof(digital_input_s));
|
||||||
registeredIcus.size--;
|
registeredIcus.size--;
|
||||||
icuDisableNotificationsI(driver);
|
icuDisableNotificationsI(driver);
|
||||||
|
icuStopCapture(driver);
|
||||||
icuStop(driver);
|
icuStop(driver);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -232,6 +233,7 @@ void startInputDriver(digital_input_s *hw, bool isActiveHigh) {
|
||||||
if (driver != NULL) {
|
if (driver != NULL) {
|
||||||
if (hw->started) {
|
if (hw->started) {
|
||||||
icuDisableNotificationsI(driver);
|
icuDisableNotificationsI(driver);
|
||||||
|
icuStopCapture(driver);
|
||||||
icuStop(driver);
|
icuStop(driver);
|
||||||
}
|
}
|
||||||
wave_icucfg.channel = getInputCaptureChannel(hw->brainPin);
|
wave_icucfg.channel = getInputCaptureChannel(hw->brainPin);
|
||||||
|
|
Loading…
Reference in New Issue