   {
     if(T1.pulseCount > T1.maxPulseCount)
       T1.pulseCount = T1.maxPulseCount;
-    // EEPROM.update(EEPROM_ADDR_PULSE_COUNT, pulseCount);
+    EEPROM.put(EEPROM_ADDR_T1, T1);
     recalculateTapColor(1);
   }
 

  
  if(command.equals("reset"))
  { //reset data
    Serial.println("reset pulse count");
    return resetPulseCount();
  }
  else if(command.equals("setCalibration"))
  {
    //takes an int as an argument.  args[1] should be the total number of pulses in a given keg.
    //i.e. pulseCount / args[1] == percentFull
    setCalibration(args[1].toInt());
  }

  return 1;

  Particle.variable("pulseCntT0", &T0.pulseCount, INT);
  Particle.variable("perFullT0", &T0.percentFull, INT);

  Particle.variable("maxPCntT1", &T1.maxPulseCount, INT);
  Particle.variable("instPCntT1", &T1.instantPulseCount, INT);
  Particle.variable("pulseCntT1", &T1.pulseCount, INT);
  Particle.variable("perFullT1", &T0.percentFull, INT);

  Particle.variable("maxPCntT2", &T2.maxPulseCount, INT);
  Particle.variable("instPCntT2", &T2.instantPulseCount, INT);
  Particle.variable("pulseCntT2", &T2.pulseCount, INT);
  Particle.variable("perFullT2", &T2.percentFull, INT);

  //cloud functions - handle a cloud POST(data)
  //curl https://api.particle.io/v1/devices/<device_id>/post \
