 float* readAmp(){
     static float amps[4] = {0,0,0,0};
     #if TEST
-        Serial.println("readAmp");
+        serialOut("readAmp");
         for(int i=0; i<NUM_SOURCES; i++){
             amps[i] = 5.4+i;
         }

float* readTemp(){
    static float temps[3] = {0,0,0};
    #if TEST
        Serial.println("readTemp");
        for(int i=0; i<NUM_SOURCES; i++){
            temps[i] = 20.3+i;
        }
        return temps;

#include <SD.h>
#include <Wire.h>
#include "RTClib.h"
#include <avr/sleep.h> //for sleeping
#include <avr/wdt.h> //for waking up

#define AREF_VOLT 4.096 //Using an external voltage reference (LM4040)
#define TEST 1 //Used during testing to enable/disable certain functionality
#define NAME_LENGTH 25 // Length of the filenames
#define SERIAL_DELAY 5 // Delay after each serial output

#define RED_LED_PIN 3
#define GREEN_LED_PIN 4

// Global variable containing the current filename
//char *filename = (char*)malloc(NAME_LENGTH);
char filename[25];

const char NUM_SOURCES = 4; //number of voltage/current sources
// System Order: Batt, Solar, Hydro, Load
