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

LP-423 - Modified IRQHandler

This commit is contained in:
paul Jewell 2016-09-30 23:24:09 +02:00
parent 9703dd1458
commit d8cbc6684b

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;