Added ability to set the output data rate on ADXL345
Now only do calculations that are needed for registered callbacks