From f022f88629d193b95053b554b2249edf2266eb49 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Thu, 25 Nov 2021 09:36:43 +0100 Subject: [PATCH] drivers/sps30: make cppcheck happy --- drivers/sps30/sps30.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/sps30/sps30.c b/drivers/sps30/sps30.c index e11bec1a2d..f6934f0a43 100644 --- a/drivers/sps30/sps30.c +++ b/drivers/sps30/sps30.c @@ -104,7 +104,7 @@ static inline void _cpy_add_crc(uint8_t *data, size_t len, uint8_t *crcd_data) * @return true if all CRCs are valid * @return false if at least one CRC is invalid */ -static inline bool _cpy_check_crc(uint8_t *data, size_t len, uint8_t *crcd_data) +static inline bool _cpy_check_crc(uint8_t *data, size_t len, const uint8_t *crcd_data) { for (size_t elem = 0; elem < len / 2; elem++) { int idx = (elem << 1);