From 185e2811dc545b4da6137f83d55a59564bc5aace Mon Sep 17 00:00:00 2001 From: Matthias Grob Date: Tue, 15 Oct 2019 14:18:30 +0200 Subject: [PATCH] gyro_calibration: use constexpr instead of const --- src/modules/commander/gyro_calibration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/commander/gyro_calibration.cpp b/src/modules/commander/gyro_calibration.cpp index 13ac8308f3..4059d38393 100644 --- a/src/modules/commander/gyro_calibration.cpp +++ b/src/modules/commander/gyro_calibration.cpp @@ -62,7 +62,7 @@ static const char *sensor_name = "gyro"; -static const unsigned max_gyros = 3; +static constexpr unsigned max_gyros = 3; /// Data passed to calibration worker routine typedef struct {