[CC1101] Fixed wrong setPacketMode() bits
This commit is contained in:
parent
6373c30729
commit
56cdbbdd7b
1 changed files with 2 additions and 2 deletions
|
@ -720,8 +720,8 @@ int16_t CC1101::setPacketMode(uint8_t mode, uint8_t len) {
|
|||
return(ERR_PACKET_TOO_LONG);
|
||||
}
|
||||
|
||||
// set to fixed packet length
|
||||
int16_t state = _mod->SPIsetRegValue(CC1101_REG_PKTCTRL0, mode, 7, 7);
|
||||
// set PKTCTRL0.LENGTH_CONFIG
|
||||
int16_t state = _mod->SPIsetRegValue(CC1101_REG_PKTCTRL0, mode, 1, 0);
|
||||
if (state != ERR_NONE) {
|
||||
return(state);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue