Arianna autonomous DAQ firmware

Dependencies:   mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW

Revision:
7:079617408fec
Parent:
6:6f002d202f59
Child:
8:95a325df1f6b
--- a/main.cpp	Fri Aug 03 23:50:57 2012 +0000
+++ b/main.cpp	Sat Aug 04 01:48:55 2012 +0000
@@ -12,7 +12,7 @@
 #include "SnStatusFrame.h"
 #include "SnHeaderFrame.h"
 #include "SnCommWin.h"
-#include "SnCommAfar.h"
+#include "SnCommAfarTCP.h"
 #include "SnCommUsb.h"
 #include "SnBase64.h"
 
@@ -573,6 +573,9 @@
             cw = gComms;
             ss = sendStat;
         }
+        if ((*cw)==0) {
+            continue;
+        }
         // open window and (mabye) send status update
         printf("calling OpenWindow. ss=%d\r\n",(int)(*ss));
         printf("gtt=%u, ct=%d, lcw=%d, dur=%u\r\n",GetTimeoutTime(gLastCommWin,conto),