1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 17:25:20 +03:00

Add some const correctness to mag initialisation.

See #582.
This commit is contained in:
Dominic Clifton 2015-03-04 09:04:59 +00:00
parent 3a35bfbabf
commit 3e73b3de53
3 changed files with 17 additions and 15 deletions

View file

@ -113,9 +113,9 @@
static float magGain[3] = { 1.0f, 1.0f, 1.0f };
static hmc5883Config_t *hmc5883Config = NULL;
static const hmc5883Config_t *hmc5883Config = NULL;
bool hmc5883lDetect(mag_t* mag, hmc5883Config_t *hmc5883ConfigToUse)
bool hmc5883lDetect(mag_t* mag, const hmc5883Config_t *hmc5883ConfigToUse)
{
bool ack = false;
uint8_t sig = 0;