diff --git a/flight/pios/common/pios_hmc5x83.c b/flight/pios/common/pios_hmc5x83.c index e11147275..0c34169c2 100644 --- a/flight/pios/common/pios_hmc5x83.c +++ b/flight/pios/common/pios_hmc5x83.c @@ -57,7 +57,7 @@ void PIOS_HMC5x83_driver_get_scale(float *scales, uint8_t size, uintptr_t contex void PIOS_HMC5x83_driver_fetch(void *, uint8_t size, uintptr_t context); bool PIOS_HMC5x83_driver_poll(uintptr_t context); -PIOS_SENSORS_Driver PIOS_HMC5x83_Driver = { +const PIOS_SENSORS_Driver PIOS_HMC5x83_Driver = { .test = PIOS_HMC5x83_driver_Test, .poll = PIOS_HMC5x83_driver_poll, .fetch = PIOS_HMC5x83_driver_fetch, diff --git a/flight/pios/common/pios_mpu6000.c b/flight/pios/common/pios_mpu6000.c index ae0c6a6a4..289464a8a 100644 --- a/flight/pios/common/pios_mpu6000.c +++ b/flight/pios/common/pios_mpu6000.c @@ -48,7 +48,7 @@ void PIOS_MPU6000_driver_Reset(uintptr_t context); void PIOS_MPU6000_driver_get_scale(float *scales, uint8_t size, uintptr_t context); QueueHandle_t PIOS_MPU6000_driver_get_queue(uintptr_t context); -PIOS_SENSORS_Driver PIOS_MPU6000_Driver = { +const PIOS_SENSORS_Driver PIOS_MPU6000_Driver = { .test = PIOS_MPU6000_driver_Test, .poll = NULL, .fetch = NULL, diff --git a/flight/pios/inc/pios_hmc5x83.h b/flight/pios/inc/pios_hmc5x83.h index 29c369cd7..3f81c4c9f 100644 --- a/flight/pios/inc/pios_hmc5x83.h +++ b/flight/pios/inc/pios_hmc5x83.h @@ -132,7 +132,7 @@ extern uint8_t PIOS_HMC5x83_ReadID(pios_hmc5x83_dev_t handler, uint8_t out[4]); extern int32_t PIOS_HMC5x83_Test(pios_hmc5x83_dev_t handler); extern bool PIOS_HMC5x83_IRQHandler(pios_hmc5x83_dev_t handler); -extern PIOS_SENSORS_Driver PIOS_MPU6000_Driver; +extern const PIOS_SENSORS_Driver PIOS_MPU6000_Driver; #endif /* PIOS_HMC5x83_H */ diff --git a/flight/pios/inc/pios_mpu6000.h b/flight/pios/inc/pios_mpu6000.h index 4d6acbc61..fc9538052 100644 --- a/flight/pios/inc/pios_mpu6000.h +++ b/flight/pios/inc/pios_mpu6000.h @@ -160,7 +160,7 @@ extern int32_t PIOS_MPU6000_ReadID(); extern void PIOS_MPU6000_Register(); extern bool PIOS_MPU6000_IRQHandler(void); -extern PIOS_SENSORS_Driver PIOS_MPU6000_Driver; +extern const PIOS_SENSORS_Driver PIOS_MPU6000_Driver; #endif /* PIOS_MPU6000_H */ /**