[SX127x] Fixed shaping disable (#452)
This commit is contained in:
parent
a2eb2d7aa5
commit
6367198546
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue