 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);

  Serial.println(SPACER); 
  Serial.println(F("--- ED Battery Management Diagnostics ---"));
  Serial.println(SPACER);
}

void WaitforSerial() {

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