A simple serial test program for the MAX17048 library.

Dependencies:   MAX17048 mbed

Revision:
6:20e76649ba57
Parent:
3:2152dd143ba3
--- a/main.cpp	Thu Nov 07 18:23:47 2013 +0000
+++ b/main.cpp	Tue Nov 12 17:49:22 2013 +0000
@@ -9,6 +9,9 @@
     if (gauge.open()) {
         printf("Device detected!\n");
 
+        //Load the default compensation value
+        gauge.compensation(MAX17048::RCOMP0);
+
         while (1) {
             //Print the current state of charge
             printf("SOC = %f%%\n", (float)gauge);