SuperTweet interface driver classes.

Dependents:   SuperTweet_TestProgram StarBoardOrangeExpansion1 GSL_04-Network_Twitter

Revision:
2:d463d3fc4f81
Parent:
1:2d211e591fc8
--- a/SuperTweetV1XML.cpp	Thu Oct 28 12:02:05 2010 +0000
+++ b/SuperTweetV1XML.cpp	Fri Oct 29 23:04:12 2010 +0000
@@ -43,7 +43,9 @@
         Net::poll();
         if (stream.readable()) {
             buf[stream.readLen()] = 0;
-            func(buf, stream.readLen());
+            if (func != NULL) {
+                func(buf, stream.readLen());
+            }
             stream.readNext((byte*)buf, sizeof(buf) - 1);
         }
     }
@@ -71,7 +73,9 @@
             Net::poll();
             if (stream.readable()) {
                 buf[stream.readLen()] = 0;
-                func(buf, stream.readLen());
+                if (func != NULL) {
+                    func(buf, stream.readLen());
+                }
                 stream.readNext((byte*)buf, sizeof(buf) - 1);
             }
         }
@@ -102,7 +106,9 @@
         Net::poll();
         if (stream.readable()) {
             buf[stream.readLen()] = 0;
-            func(buf, stream.readLen());
+            if (func != NULL) {
+                func(buf, stream.readLen());
+            }
             stream.readNext((byte*)buf, sizeof(buf) - 1);
         }
     }