1
0
Fork 0
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:
Dominic Clifton 2015-04-16 20:56:50 +01:00
parent 6d5b44df7a
commit a5c2c70541
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -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;