 // Firmware for the CIWS Residential Datalogger
-// Arduino IDE ver. 1.8.7
+// Arduino IDE ver. 1.8.8
 // Utah Water Research Lab
-// Updated: 10/25/2018
+// Updated: 1/28/2019
 // Daniel Henshaw and Josh Tracy
 // Note: F("String") keeps string literals in program memory and out of RAM. Saves RAM space. Very good. Don't remove the F. I know it looks funny. But don't do it. Really. The program might crash if you do. And then you'll have dishonor on yourself, dishonor on your cow...
 
 /*******************************************************************************************\
 * Hardware Description
-*                     ___________________                             ___
+*                     ___________________   TWI                       ___
 *                    |                   |<------------------------->[___] RTC  
-*  ________          |                   |                            _______
+*                    |                   |                   |        ___
+*                    |                   |                    ------>|___| Magnetometer
+*  ________          |                   |  SPI                       _______
 * |        |         |                   |<------------------------->|       | SD
 * |        |<------->|                   |<-----[] Activate Serial   |______/
-* |________|         |___________________|<-----[] Sensor
+* |________|         |___________________|  GPIO
 *  Serial             Controller
 * 
 * Serial:          Serial interface for user interaction with the logger

                                  
  disableUnneededPeripherals();   // Disable unneeded peripherals

  if((digitalRead(5) == 0) && !State.serialOn)
  {
    State.serialOn = true;
    serialPowerUp();
  }
}

*      
*   2. INT1_ISR()
*      
\*****************************************************************/

#include <SPI.h>
#include <SD.h>
