Skip to content

Commit

Permalink
remove unused gCurrentRssi
Browse files Browse the repository at this point in the history
  • Loading branch information
jcalado authored and xawen committed Mar 10, 2024
1 parent 33466a1 commit a7ab13c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion app/radio.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ uint8_t gCurrentVfo;
ChannelInfo_t *gMainVfo;
ChannelInfo_t gVfoState[3];
FrequencyInfo_t gVfoInfo[2];
uint16_t gCurrentRssi[2];

bool gNoaaMode;
uint16_t gCode;
Expand Down
1 change: 0 additions & 1 deletion app/radio.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ extern uint8_t gCurrentVfo;
extern ChannelInfo_t *gMainVfo;
extern ChannelInfo_t gVfoState[3];
extern FrequencyInfo_t gVfoInfo[2];
extern uint16_t gCurrentRssi[2];

extern bool gNoaaMode;
extern uint16_t gCode;
Expand Down
7 changes: 0 additions & 7 deletions task/am-fix.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,6 @@ void Task_AM_fix()
prev_rssi[vfo] = new_rssi;
}

// save the corrected RSSI level
gCurrentRssi[vfo] = rssi - rssi_gain_diff[vfo];

// automatically adjust the RF RX gain

// update the gain hold counter
Expand Down Expand Up @@ -352,10 +349,6 @@ void Task_AM_fix()
// RF gain difference from original QS setting
rssi_gain_diff[vfo] = ((int16_t)gain_table[index].gain_dB - gain_table[original_index].gain_dB) * 2;
}

// save the corrected RSSI level
gCurrentRssi[vfo] = rssi - rssi_gain_diff[vfo];

gAmFixCountdown = 100;
} else {
gAmFixCountdown = 1000;
Expand Down
1 change: 0 additions & 1 deletion task/rssi.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ static void CheckRSSI(void)
#ifdef ENABLE_RX_BAR
UI_DrawRxSmeter(!gCurrentVfo, false);
#endif
gCurrentRssi[gCurrentVfo] = Power;
}
}

Expand Down

0 comments on commit a7ab13c

Please sign in to comment.