mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
chg: cleaning up some function calls.
fix: check to see clock is bigger than zero.
This commit is contained in:
parent
3b91a33eec
commit
30ceea4aea
8 changed files with 114 additions and 85 deletions
|
@ -1027,7 +1027,7 @@ bool doPreambleSearch(size_t *startIdx){
|
|||
|
||||
bool detectFSK(){
|
||||
// detect fsk clock
|
||||
if (!GetFskClock("", false, false)) {
|
||||
if (!GetFskClock("", false)) {
|
||||
if (g_debugMode) PrintAndLog("DEBUG: Error - EM: FSK clock failed");
|
||||
return false;
|
||||
}
|
||||
|
@ -1041,7 +1041,7 @@ bool detectFSK(){
|
|||
}
|
||||
// PSK clocks should be easy to detect ( but difficult to demod a non-repeating pattern... )
|
||||
bool detectPSK(){
|
||||
int ans = GetPskClock("", false, false);
|
||||
int ans = GetPskClock("", false);
|
||||
if (ans <= 0) {
|
||||
if (g_debugMode) PrintAndLog("DEBUG: Error - EM: PSK clock failed");
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue