chg: cleaning up some function calls.

fix: check to see clock is bigger than zero.
This commit is contained in:
iceman1001 2017-11-09 19:15:56 +01:00
commit 30ceea4aea
8 changed files with 114 additions and 85 deletions

View file

@ -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;