 void loop() {
     // TO DO
     test();
-}
+
+    if(WDT_FLAG == TRUE){
+        WDT_FLAG = FALSE;
+    }
+}


void newFile(){

    char header[] = 
        "#Thanksgiving Cabin Power System\n"
        "#Timestamp,Battery Voltage,Solar Voltage,Hydro Voltage,Load Voltage,"
        "Battery Amps, Solar Amps,Hydro Amps,Load Amps,Battery Energy State,"
        "Outside Temp,Cabin Temp,Battery Temp\n";

    char buff[NAME_LENGTH];
    char *temp = buff;
    readTime(temp);
    strcat(temp, ".csv");
    memcpy(filename, temp, sizeof(char)*NAME_LENGTH);
#if TEST
    return;
#endif


void readTime(char *time){
    // TO DO

    #if TEST
        serialOut("readTime");
    #endif
    //static char *time;
    //char *temp;

    //unixTime = now.unixtime();

    int randNumber = random(100);
    sprintf(time, "%09d", randNumber);
    //time = &temp;
