bugfix: speed sensor input under ChibiOS 3.0 was broken
This commit is contained in:
parent
cf47b75f2e
commit
9375108a5f
|
@ -211,6 +211,7 @@ void startInputDriver(digital_input_s *hw, bool isActiveHigh) {
|
|||
}
|
||||
wave_icucfg.channel = getInputCaptureChannel(hw->brainPin);
|
||||
efiIcuStart(driver, &wave_icucfg);
|
||||
icuStartCapture(driver); // this would change state from READY to WAITING
|
||||
icuEnableNotifications(driver);
|
||||
}
|
||||
hw->started = true;
|
||||
|
|
|
@ -123,7 +123,7 @@ static ICUDriver *turnOnTriggerInputPin(const char *msg, brain_pin_e hwPin, ICUC
|
|||
|
||||
efiIcuStart(driver, icucfg);
|
||||
if (driver->state == ICU_READY) {
|
||||
icuStartCapture(driver);
|
||||
icuStartCapture(driver); // this would change state from READY to WAITING
|
||||
icuEnableNotifications(driver);
|
||||
} else {
|
||||
// we would be here for example if same pin is used for multiple input capture purposes
|
||||
|
|
Loading…
Reference in New Issue