 //--------------------------------------------------------------------------------//
-// ED BMSdiag, v0.2
+// ED BMSdiag, v0.21
 // Retrieve battery diagnostic data from your smart electric drive EV.
 //
 // (c) 2016 by MyLab-odyssey

   //Wait for start via serial terminal
   WaitforSerial();
   clearSerialBuffer();
   
   delay(500);
     
   fOK = ReadSOC();

void setup()
{  
  Serial.begin(115200);
  while (!Serial); // while the serial stream is not open, do nothing:
  Serial.println();
  
  pinMode(CS, OUTPUT);
  pinMode(CS_SD, OUTPUT);
