1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

Made pios_hmc5843_data_ready volatile (accessed by both interrupts and main exec loop).

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1638 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
pip 2010-09-15 17:00:36 +00:00 committed by pip
parent df88140f51
commit 89fb0b8582

View File

@ -102,7 +102,7 @@ typedef struct {
} PIOS_HMC5843_ConfigTypeDef;
/* Local Variables */
static bool pios_hmc5843_data_ready;
volatile bool pios_hmc5843_data_ready;
static void PIOS_HMC5843_Config(PIOS_HMC5843_ConfigTypeDef *HMC5843_Config_Struct);
static bool PIOS_HMC5843_Read(uint8_t address, uint8_t *buffer, uint8_t len);