From 5d2555fab7143a1698f93032946dc849b3c37d22 Mon Sep 17 00:00:00 2001 From: dam_git Date: Mon, 7 Nov 2022 06:06:40 +0100 Subject: [PATCH 1/2] warning: 'B0011110' is deprecated: use 0b0011110 instead --- src/SigFox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SigFox.cpp b/src/SigFox.cpp index 783b3e0..5a31fac 100644 --- a/src/SigFox.cpp +++ b/src/SigFox.cpp @@ -379,7 +379,7 @@ char* SIGFOXClass::status(Protocol type) char* SIGFOXClass::getStatusAtm() { buffer[0] = '\0'; - byte err = (atm & B0011110) >> 1; + byte err = (atm & 0b0011110) >> 1; char pa[10]; pa[0] = '\0'; if (bitRead(atm, 0) == 1) strcpy(pa, "PA ON"); else strcpy(pa, "PA OFF"); if (err > 0) From a23cbe42baacbc8ac907ef51db21ff033e86c932 Mon Sep 17 00:00:00 2001 From: dam_git Date: Mon, 7 Nov 2022 06:11:21 +0100 Subject: [PATCH 2/2] unused variable 'ret' [-Wunused-variable] int ret; --- src/SigFox.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/SigFox.cpp b/src/SigFox.cpp index 5a31fac..9847d90 100644 --- a/src/SigFox.cpp +++ b/src/SigFox.cpp @@ -213,7 +213,6 @@ int SIGFOXClass::send(unsigned char mess[], int len, bool rx) } int SIGFOXClass::sendBit(bool value){ - int ret; int i = 0; status();