mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +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 <stdlib.h>
|
||||||
|
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
|
#include "build_config.h"
|
||||||
|
#include "debug.h"
|
||||||
|
|
||||||
#include "common/maths.h"
|
#include "common/maths.h"
|
||||||
|
|
||||||
|
@ -196,7 +198,8 @@ void MPU_DATA_READY_EXTI_Handler(void)
|
||||||
uint32_t now = micros();
|
uint32_t now = micros();
|
||||||
callDelta = now - lastCalledAt;
|
callDelta = now - lastCalledAt;
|
||||||
|
|
||||||
UNUSED(callDelta);
|
//UNUSED(callDelta);
|
||||||
|
debug[0] = callDelta;
|
||||||
|
|
||||||
lastCalledAt = now;
|
lastCalledAt = now;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -209,7 +209,10 @@ bool bmp085Detect(const bmp085Config_t *config, baro_t *baro)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef BARO_EOC_GPIO
|
||||||
unregisterExti15_10_CallbackHandler(BMP085_EOC_EXTI_Handler);
|
unregisterExti15_10_CallbackHandler(BMP085_EOC_EXTI_Handler);
|
||||||
|
#endif
|
||||||
|
|
||||||
BMP085_OFF;
|
BMP085_OFF;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue