[SX127x] Fixed shaping disable (#452)

This commit is contained in:
jgromes 2022-01-23 10:21:28 +01:00
parent a2eb2d7aa5
commit 6367198546

View file

@ -314,6 +314,11 @@ int16_t SX1278::setDataShaping(uint8_t sh) {
// check modulation
if(SX127x::_ook) {
// we're in OOK mode, the only thing we can do is disable
if(sh == RADIOLIB_SHAPING_NONE) {
return(setDataShapingOOK(0));
}
return(RADIOLIB_ERR_INVALID_MODULATION);
}