From d7a620c8ea9abf108ee6b2a0ec9b7eeef91c431d Mon Sep 17 00:00:00 2001 From: jgromes Date: Fri, 7 Aug 2020 17:45:39 +0200 Subject: [PATCH] [SX1272] Fixed incorrect FSK/OOK modulation check --- src/modules/SX127x/SX1272.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/SX127x/SX1272.cpp b/src/modules/SX127x/SX1272.cpp index 94732904..ca1cc5a0 100644 --- a/src/modules/SX127x/SX1272.cpp +++ b/src/modules/SX127x/SX1272.cpp @@ -273,7 +273,7 @@ int16_t SX1272::setDataShaping(uint8_t sh) { } // check modulation - if(!SX127x::_ook) { + if(SX127x::_ook) { return(ERR_INVALID_MODULATION); }