From f8c9b5d03a01c74fc4649047f47be3f6d85cbf20 Mon Sep 17 00:00:00 2001 From: jgromes Date: Thu, 9 Apr 2020 09:58:35 +0200 Subject: [PATCH] [SX128x] Fixed incorrect status code --- src/modules/SX128x/SX128x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/SX128x/SX128x.cpp b/src/modules/SX128x/SX128x.cpp index 186e7d86..c61900a5 100644 --- a/src/modules/SX128x/SX128x.cpp +++ b/src/modules/SX128x/SX128x.cpp @@ -604,7 +604,7 @@ int16_t SX128x::setBitRate(uint16_t br) { } else if(br == 2000) { _br = SX128X_BLE_GFSK_BR_2_000_BW_2_4; } else { - return(ERR_INVALID_BIT_RANGE); + return(ERR_INVALID_BIT_RATE); } // update modulation parameters