X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/d5a72d2fee4bcb0377c64c0be7bb22a1d7e18b3a..9484ff3d6eeff3bea9ff1547f753a97e85c94f13:/client/graph.c?ds=sidebyside diff --git a/client/graph.c b/client/graph.c index 3a8f0c3a..a0e85ffd 100644 --- a/client/graph.c +++ b/client/graph.c @@ -155,8 +155,11 @@ void setGraphBuf(uint8_t *buff,int size) int getFromGraphBuf(uint8_t *buff) { uint32_t i; - for (i=0;i127) GraphBuffer[i]=127; //trim + if (GraphBuffer[i]<-127) GraphBuffer[i]=-127; //trim buff[i]=(uint8_t)(GraphBuffer[i]+128); + } return i; } /* Get or auto-detect clock rate */