Skip to content

Commit

Permalink
update low rssi error of spektrum
Browse files Browse the repository at this point in the history
when continue low rssi are recevied in spekFrame[0] ( < -92dBm), original code will  return a full rssi because of the initial value of retval = 101. change it to 0  then fixed.
  • Loading branch information
githubDLG committed Aug 21, 2020
1 parent 9791bce commit fa15955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/io/spektrum_rssi.c
Expand Up @@ -91,7 +91,7 @@ static const dbm_table_t dbmTable[] = {

// Convert dBm to Range %
static int8_t dBm2range (int8_t dBm) {
int8_t retval = dbmTable[0].reportAs;
int8_t retval = 0;

for ( uint8_t i = 1; i < ARRAYLEN(dbmTable); i++ ) {
if (dBm >= dbmTable[i].dBm) {
Expand Down

0 comments on commit fa15955

Please sign in to comment.