Arianna autonomous DAQ firmware

Dependencies:   mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW

Revision:
18:55f1581f2ee4
Parent:
16:744ce85aede2
Child:
21:ce51bb0ba4a5
--- a/SnCommWin.h	Wed Sep 12 22:50:25 2012 +0000
+++ b/SnCommWin.h	Sat Sep 29 04:54:15 2012 +0000
@@ -116,6 +116,18 @@
                              const uint32_t timeout,
                              const uint32_t handshakeTimeout);
 
+    // for debugging
+    void dispStrBytes(const char* const s, const uint32_t len) const {
+        const char* c = s;
+        for (uint32_t i=0; i<len; ++i, ++c) {
+            if (*c>0x1F && *c<0x7F) {
+                printf("%c", *c);
+            } else {
+                printf(".x%02x.", *c);
+            }
+        }
+    }
+    
 };
 
 #endif // SN_SnCommWin