jrowberg/i2cdevlib — pull request #84 by hgvk94 (2014-09-06 14:20:43+00:00)
Title: Reading the motion detect status 

The previous way of reading the RA_MOT_DETECT_STATUS used the readbit() function(getXPosMotionDetected()), therby erasing the rest of the motion detected bits(Once the interrupt register has been read, the entire register is reset). Therefore to get correct readigs the entire regiter has to be read at once. I have included a function (getMoitonStatus()) that reads the entire byte.