From: chrishoder Date: Wed, 13 Feb 2013 20:04:34 +0000 (+0000) Subject: updated features for two different types of sniffing. fixed and scrolling. This can... X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=0a6754712a364a01d149dc518f44b258a3a37cf8;hp=e69fa827ffcc6d978d9cf6b4ce967327e276d224 updated features for two different types of sniffing. fixed and scrolling. This can be changed on the gui git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1487 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/client/GoodFETMCPCANCommunication.py b/client/GoodFETMCPCANCommunication.py index 6af64ff..0b5bfc3 100644 --- a/client/GoodFETMCPCANCommunication.py +++ b/client/GoodFETMCPCANCommunication.py @@ -173,10 +173,11 @@ class GoodFETMCPCANCommunication: print "Message in RXB0; message type is %02x (0x00 is standard data, 0x08 is standard remote)." %messagetype elif(messagestat == 0x00): print "No messages in buffers." - + #check to see if there was a packet + if( packet != None): + packetcount+=1; if (packet!=None and writeToFile == True): - packetcount+=1; row = []; row.append("%f"%time.time());