diff --git a/src/config.c b/src/config.c index 12556fca3..9e88f6f30 100755 --- a/src/config.c +++ b/src/config.c @@ -13,7 +13,7 @@ master_t mcfg; // master config struct with data independent from profiles config_t cfg; // profile config struct const char rcChannelLetters[] = "AERT1234"; -static uint8_t EEPROM_CONF_VERSION = 48; +static const uint8_t EEPROM_CONF_VERSION = 48; static uint32_t enabledSensors = 0; static void resetConf(void); diff --git a/src/drv_pwm.c b/src/drv_pwm.c index a03c7dfbd..4bf6e9a0d 100755 --- a/src/drv_pwm.c +++ b/src/drv_pwm.c @@ -74,7 +74,7 @@ typedef void pwmCallbackPtr(uint8_t port, uint16_t capture); -static pwmHardware_t timerHardware[] = { +static const pwmHardware_t timerHardware[] = { { TIM2, GPIOA, GPIO_Pin_0, TIM_Channel_1, TIM2_IRQn, 0, }, // PWM1 { TIM2, GPIOA, GPIO_Pin_1, TIM_Channel_2, TIM2_IRQn, 0, }, // PWM2 { TIM2, GPIOA, GPIO_Pin_2, TIM_Channel_3, TIM2_IRQn, 0, }, // PWM3 @@ -188,7 +188,7 @@ static const uint8_t airPWM[] = { 0xFF }; -static const uint8_t *hardwareMaps[] = { +static const uint8_t * const hardwareMaps[] = { multiPWM, multiPPM, airPWM,