Commits

John McCombs  committed 62599ea

- fix bug in setGSensitivty (via robertspil)

  • Participants
  • Parent commits d1ebc6c

Comments (0)

Files changed (1)

File bma180/bma180.cpp

 void BMA180::setGSensitivty(GSENSITIVITY maxg) //1, 1.5 2 3 4 8 16
 {
     setRegValue(0x35,maxg<<1,0xF1);
+    gSense = maxg;
 }
 
 void BMA180::SetFilter(FILTER f) // 10,20,40,75,150,300,600,1200, HP 1HZ,BP 0.2-300, higher values not authorized