fixed bug in bma180 driver