From 474f22c3fe4b285306c524cb22bdf4996fe5e1f8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 29 Apr 2021 15:13:47 +1000 Subject: [PATCH] AP_Baro: allow for define of BARO_MAX_INSTANCES --- libraries/AP_Baro/AP_Baro.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_Baro/AP_Baro.h b/libraries/AP_Baro/AP_Baro.h index 5ec059748c..f3fdce79f1 100644 --- a/libraries/AP_Baro/AP_Baro.h +++ b/libraries/AP_Baro/AP_Baro.h @@ -12,7 +12,9 @@ #endif // maximum number of sensor instances +#ifndef BARO_MAX_INSTANCES #define BARO_MAX_INSTANCES 3 +#endif // maximum number of drivers. Note that a single driver can provide // multiple sensor instances