         TGC_logfile.print("Created: ");
         TGC_logfile.println(newName);
     }
+    */
 }
 
 void standby(){

// the logging file
File TGC_logfile;

void readVoltage(float *voltages[]){
    #if TEST
    for(int i=0; i++; i<NUM_SOURCES){
        *voltages[i] = 13.8+i;
    }
        return;
    #endif

    for(int i=0; i++; i<NUM_SOURCES){
        *voltages[i] =  analogRead(VOLT_PIN[i]) * VOLT_MULTI[i];
    }
    return;
}//readVoltage

void readAmp(float *amps[]){
    #if TEST
    for(int i=0; i++; i<NUM_SOURCES){
        *amps[i] = 5.4+i;
    }
        return;
    #endif

    for(int i=0; i++; i<NUM_SOURCES){
        *amps[i] =  analogRead(AMP_PIN[i]) * AMP_MULTI[i];
    }
    return;
}//readAmp

void readTemp(float *temps[]){
    #if TEST
    for(int i=0; i++; i<NUM_SOURCES){
        *temps[i] = 20.3+i;
    }
        return;
    #endif

    for(int i=0; i++; i<NUM_TEMPS){
        //do something
    }
    return;
}//readTemp

char readTime(){
    // TO DO
    return "2017_09_30-12-43-33";
}

int writeSD(float volt[], float amp[], float temp[], char time[], float power){
    // TO DO

    // connect to RTC
    Wire.begin();  
    if (!RTC.begin()) {
        TGC_logfile.println("RTC failed");
    Serial.println("RTC failed");
    }
#endif

}//setup

void loop() {
    // TO DO
    test();
}
