mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Merged in paul_jewell/librepilot/LP-423_fix_HMC5x83_driver_dereferences_null_pointer (pull request #338)
LP-423 - Modified IRQHandler
This commit is contained in:
commit
01de16657d
@ -539,6 +539,9 @@ int32_t PIOS_HMC5x83_Test(pios_hmc5x83_dev_t handler)
|
||||
*/
|
||||
bool PIOS_HMC5x83_IRQHandler(pios_hmc5x83_dev_t handler)
|
||||
{
|
||||
if (!handler) { // handler is not set on first call
|
||||
return false;
|
||||
}
|
||||
pios_hmc5x83_dev_data_t *dev = dev_validate(handler);
|
||||
|
||||
dev->data_ready = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user