X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/d5a72d2fee4bcb0377c64c0be7bb22a1d7e18b3a..3400a4358db11337382065c26e58539d28ade5ef:/client/graph.c 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 */