]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmddata.c
Merge branch 'master' of https://github.com/Proxmark/proxmark3
[proxmark3-svn] / client / cmddata.c
index bc88d883d636f2eb1df7759031217ae704ba285b..4eca030db416480829f45852e30df8ebccfbfd74 100644 (file)
@@ -1561,7 +1561,7 @@ int PSKDemod(const char *Cmd, bool verbose)
        }
        uint8_t BitStream[MAX_GRAPH_TRACE_LEN]={0};
        size_t BitLen = getFromGraphBuf(BitStream);
-       if (BitLen==0) return -1;
+       if (BitLen==0) return 0;
        uint8_t carrier=countFC(BitStream, BitLen, 0);
        if (carrier!=2 && carrier!=4 && carrier!=8){
                //invalid carrier
Impressum, Datenschutz