better pin stop?
This commit is contained in:
parent
b8a8818554
commit
a2d082eeea
|
@ -213,6 +213,8 @@ void stopWaveAnalyzerDriver(const char *msg, brain_pin_e brainPin) {
|
||||||
memcpy(®isteredIcus.elements[i], ®isteredIcus.elements[regSize - 1],
|
memcpy(®isteredIcus.elements[i], ®isteredIcus.elements[regSize - 1],
|
||||||
sizeof(digital_input_s));
|
sizeof(digital_input_s));
|
||||||
registeredIcus.size--;
|
registeredIcus.size--;
|
||||||
|
icuDisableNotificationsI(driver);
|
||||||
|
icuStop(driver);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue