[CC1101] Minor formatting changes
This commit is contained in:
parent
02b6024e65
commit
610a0c2de9
1 changed files with 3 additions and 4 deletions
|
@ -588,9 +588,8 @@ int16_t CC1101::fixedPacketLengthMode(uint8_t len) {
|
|||
return(state);
|
||||
}
|
||||
|
||||
// all went well: cache the reg value
|
||||
// update cached value
|
||||
_packetLengthConfig = CC1101_LENGTH_CONFIG_FIXED;
|
||||
|
||||
return(state);
|
||||
}
|
||||
|
||||
|
@ -599,7 +598,7 @@ int16_t CC1101::variablePacketLengthMode(uint8_t maxLen) {
|
|||
return(ERR_PACKET_TOO_LONG);
|
||||
}
|
||||
|
||||
// set to fixed packet length
|
||||
// set to variable packet length
|
||||
int16_t state = SPIsetRegValue(CC1101_REG_PKTCTRL0, CC1101_LENGTH_CONFIG_VARIABLE, 1, 0);
|
||||
if (state != ERR_NONE) {
|
||||
return(state);
|
||||
|
@ -611,7 +610,7 @@ int16_t CC1101::variablePacketLengthMode(uint8_t maxLen) {
|
|||
return(state);
|
||||
}
|
||||
|
||||
// all went well: cache the reg value
|
||||
// update cached value
|
||||
_packetLengthConfig = CC1101_LENGTH_CONFIG_VARIABLE;
|
||||
return(state);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue