mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Fix build for targets that don't use BARO_EOC_GPIO.
This commit is contained in:
parent
6d5b44df7a
commit
a5c2c70541
2 changed files with 7 additions and 1 deletions
|
@ -20,6 +20,8 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include "platform.h"
|
||||
#include "build_config.h"
|
||||
#include "debug.h"
|
||||
|
||||
#include "common/maths.h"
|
||||
|
||||
|
@ -196,7 +198,8 @@ void MPU_DATA_READY_EXTI_Handler(void)
|
|||
uint32_t now = micros();
|
||||
callDelta = now - lastCalledAt;
|
||||
|
||||
UNUSED(callDelta);
|
||||
//UNUSED(callDelta);
|
||||
debug[0] = callDelta;
|
||||
|
||||
lastCalledAt = now;
|
||||
#endif
|
||||
|
|
|
@ -209,7 +209,10 @@ bool bmp085Detect(const bmp085Config_t *config, baro_t *baro)
|
|||
return true;
|
||||
}
|
||||
|
||||
#ifdef BARO_EOC_GPIO
|
||||
unregisterExti15_10_CallbackHandler(BMP085_EOC_EXTI_Handler);
|
||||
#endif
|
||||
|
||||
BMP085_OFF;
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue