 byte ZCommand::CRC8(const byte *data, byte len) 
 {
   byte crc = 0x00;
+  if(logFileOpen)
+      logFile.print("CRC8: ");
+  int c=0;
   while (len--) 
   {
     byte extract = *data++;
+    if(logFileOpen)
+    {
+        logFile.print(TOHEX(extract));
+        if((++c)>20)
+        {
+          logFile.print("\r\ncrc8: ");
+          c=0;
+        }
+        else
+          logFile.print(" ");
+    }
     for (byte tempI = 8; tempI; tempI--) 
     {
       byte sum = (crc ^ extract) & 0x01;

      extract >>= 1;
    }
  }
  return crc;
}    


        if((vlen > 0)&&(isNumber))
          vval=atoi((char *)vbuf);
      }
      
      if(logFileOpen)
      {
        if(vlen > 0)
          logFile.printf("Proc: %c %d '%s'\r\n",lastCmd,vval,vbuf);
        else
          logFile.printf("Proc: %c %d ''\r\n",lastCmd,vval);
      }

      /*
       * We have cmd and args, time to DO!
       */
