<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -14,6 +14,10 @@ Arduino &amp; Ethernet shield
 BACKGROUND
 ==========
 
+This project takes a feed from a web-based data source, and controls
+the colour of the panda's eyes.  The background can be found at
+http://www.adoptioncurve.net/archives/2009/03/toy-abuse-for-fun-and-nonprofit.php
+
 Ruby components based on code by James Smith (www.floppy.co.uk)
 Arduino components based on code by Bob S (http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1231812230)
 </diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -128,34 +128,37 @@ void serialEvent() {
       tagFlag = false;
       dataFlag = true;    // Must be the start of the data itself            
       
-   } else if (inChar != 10) {
+   } else if (inChar != 10) {  // if the char ISN'T a linefeed...
       if (tagFlag) {
          // Add tag char to string
          addChar(inChar, tmpStr);
 
          // Check for &lt;/XML&gt; end tag, ignore it
          if ( tagFlag &amp;&amp; strcmp(tmpStr, endTag) == 0 ) {
-            clearStr(tmpStr);
-            tagFlag = false;
-            dataFlag = false;
+            clearStr(tmpStr);		// clear out tmpStr
+            tagFlag = false;		// set both tagFlag and dataFlag
+            dataFlag = false;		// to false
          }
       }
       
-      if (dataFlag) {
-         // Add data char to string
-         addChar(inChar, dataStr);
+      if (dataFlag) {				// if this is data, then
+         addChar(inChar, dataStr);	// add the char to dataStr
       }
    }  
   
    // If a LF, process the line
    if (inChar == 10 ) {
 
-/*
+/*////////////////////////////////
+//
+//	This is where the magic goes
+//
+/////////////////////////////////*/
+
       Serial.print(&quot;tagStr: &quot;);
       Serial.println(tagStr);
       Serial.print(&quot;dataStr: &quot;);
       Serial.println(dataStr);
-*/
 
       // Find specific tags and print data
       if (matchTag(&quot;&lt;temp_f&gt;&quot;)) {</diff>
      <filename>marketbear/marketbear.pde</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9e0ae39686bea79d9c8fbdabc84873a13397c984</id>
    </parent>
  </parents>
  <author>
    <name>Tim Duckett</name>
    <email>tim@adoptioncurve.net</email>
  </author>
  <url>http://github.com/timd/marketbear/commit/86c669d9d8d32eee57c8116c8ffee8ec23556481</url>
  <id>86c669d9d8d32eee57c8116c8ffee8ec23556481</id>
  <committed-date>2009-05-06T10:21:12-07:00</committed-date>
  <authored-date>2009-05-06T10:21:12-07:00</authored-date>
  <message>More tweaks of the Arduino code</message>
  <tree>d1a7a9063db9bb50966649498603e953857ef779</tree>
  <committer>
    <name>Tim Duckett</name>
    <email>tim@adoptioncurve.net</email>
  </committer>
</commit>
