Update ADXL345.cpp

fix some bug when use 32bit system