1
0
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:
Lalanne Laurent 2016-10-01 19:36:57 +02:00
commit 01de16657d

View File

@ -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;