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:
parent
df88140f51
commit
89fb0b8582
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user