mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
textual
This commit is contained in:
parent
300014d3b7
commit
5d503fc5d3
1 changed files with 7 additions and 0 deletions
|
@ -84,6 +84,8 @@ void setGraphBuf(uint8_t *buff, size_t size) {
|
||||||
|
|
||||||
size_t getFromGraphBuf(uint8_t *buff) {
|
size_t getFromGraphBuf(uint8_t *buff) {
|
||||||
if (buff == NULL) return 0;
|
if (buff == NULL) return 0;
|
||||||
|
if (GraphTraceLen == 0) return 0;
|
||||||
|
|
||||||
size_t i;
|
size_t i;
|
||||||
for (i = 0; i < GraphTraceLen; ++i) {
|
for (i = 0; i < GraphTraceLen; ++i) {
|
||||||
//trim
|
//trim
|
||||||
|
@ -134,6 +136,11 @@ void convertGraphFromBitstreamEx(int hi, int low) {
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t size = getFromGraphBuf(bits);
|
size_t size = getFromGraphBuf(bits);
|
||||||
|
if (size == 0) {
|
||||||
|
PrintAndLogEx(WARNING, "Failed to copy from graphbuffer");
|
||||||
|
free(bits);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
// set signal properties low/high/mean/amplitude and is_noise detection
|
// set signal properties low/high/mean/amplitude and is_noise detection
|
||||||
computeSignalProperties(bits, size);
|
computeSignalProperties(bits, size);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue