   if (NLG6TEST) nlg6_installed();
 
   //test valid VIN stored in battery
-  if (sizeof(myVIN) > 1) test_BattVIN();
+  test_BattVIN();
   
   //Read CAN-Bus IDs related to BMS (sniff traffic)
-  Serial.print(F("Reading data"));
   byte selected[] = {0,1,2,3,4,5,6,7};
   ReadCANtraffic_BMS(selected, sizeof(selected));
 
-  //Print standard data set as overview
-  printSplashScreen();
-  
   //Setup CLI, display prompt and local echo
   setupMenu();
   init_cmd_prompt();
+
+  // For convenience of users, dump all data first (same as "all" from top-level menu)
+  // Do this after the setupMenu() call.
+  if (myDevice.initialDump)
+    get_all(0, (void**) 0L);
+
+  //Print standard data set as overview
+  printSplashScreen();
+  
+  // Prompt user for what to do next
   cmd_display();
   set_local_echo(ECHO);
   

//! \brief   Only usable for third gen. model build from late 2012 to mid 2015!!!
//! \brief   Build a diagnostic tool with the MCP2515 CAN controller and Arduino
//! \brief   compatible hardware.
//! \date    2017-September
//! \author  MyLab-odyssey
//! \version 1.0.1
//--------------------------------------------------------------------------------
#include "ED_BMSdiag.h"

//--------------------------------------------------------------------------------
//! \brief   SETUP()
//--------------------------------------------------------------------------------
void setup() {
  Serial.begin(115200);
  while (!Serial); // while the serial stream is not open, do nothing

  pinMode(CS, OUTPUT);
  pinMode(CS_SD, OUTPUT);


  return fOK;
}


boolean ReadGlobalConfig(deviceStatus_t *config, bool force_write = false)
{
  // If the EEPROM hasn't been programmed yet, program it
  if (force_write || EEPROM.read(EE_Signature) != kMagicSignature) {
    Serial.println("Setting factory defaults");
    EEPROM.update(EE_IntialDumpAll, 1); 
    EEPROM.update(EE_logging, 0);
    EEPROM.update(EE_logInterval, 30);
    EEPROM.update(EE_Signature, kMagicSignature);
  }
  config->initialDump = (EEPROM.read(EE_IntialDumpAll) > 0);
  config->logging = (EEPROM.read(EE_logging) > 0);
  config->timer = EEPROM.read(EE_logInterval);
}

