From 45d3aac0d9c95402b8443f57e7271c9df0fe58cc Mon Sep 17 00:00:00 2001 From: jgromes Date: Sun, 26 May 2024 08:55:38 +0200 Subject: [PATCH] [CC1101] Fixed signed comparison warning --- src/modules/CC1101/CC1101.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/CC1101/CC1101.cpp b/src/modules/CC1101/CC1101.cpp index 57835377..72830ce0 100644 --- a/src/modules/CC1101/CC1101.cpp +++ b/src/modules/CC1101/CC1101.cpp @@ -610,7 +610,7 @@ int16_t CC1101::checkOutputPower(int8_t power, int8_t* clipped, uint8_t* raw) { // if just a check occurs (and not requesting the raw power value), return now if(!raw) { - for(int i = 0; i < sizeof(allowedPwrs); i++) { + for(size_t i = 0; i < sizeof(allowedPwrs); i++) { if(allowedPwrs[i] == power) { return(RADIOLIB_ERR_NONE); }