Change variables to static

This commit is contained in:
George Oikonomou 2017-12-17 22:24:48 +00:00
parent b5fa28e2d4
commit 38987352c4
2 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ static const output_config_t output_power[] = {
#define OUTPUT_POWER_UNKNOWN 0xFFFF #define OUTPUT_POWER_UNKNOWN 0xFFFF
/* Default TX Power - position in output_power[] */ /* Default TX Power - position in output_power[] */
const output_config_t *tx_power_current = &output_power[0]; static const output_config_t *tx_power_current = &output_power[0];
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
static volatile int8_t last_rssi = 0; static volatile int8_t last_rssi = 0;
static volatile uint8_t last_corr_lqi = 0; static volatile uint8_t last_corr_lqi = 0;

View File

@ -203,7 +203,7 @@ extern const prop_mode_tx_power_config_t TX_POWER_DRIVER[];
#define OUTPUT_POWER_UNKNOWN 0xFFFF #define OUTPUT_POWER_UNKNOWN 0xFFFF
/* Default TX Power - position in output_power[] */ /* Default TX Power - position in output_power[] */
const prop_mode_tx_power_config_t *tx_power_current = &TX_POWER_DRIVER[1]; static const prop_mode_tx_power_config_t *tx_power_current = &TX_POWER_DRIVER[1];
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
#ifdef PROP_MODE_CONF_LO_DIVIDER #ifdef PROP_MODE_CONF_LO_DIVIDER
#define PROP_MODE_LO_DIVIDER PROP_MODE_CONF_LO_DIVIDER #define PROP_MODE_LO_DIVIDER PROP_MODE_CONF_LO_DIVIDER