mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
fix and style
This commit is contained in:
parent
715f149413
commit
72900d1bf9
10 changed files with 79 additions and 28 deletions
|
@ -152,7 +152,9 @@ void computeSignalProperties(const uint8_t *samples, uint32_t size) {
|
|||
}
|
||||
|
||||
void removeSignalOffset(uint8_t *samples, uint32_t size) {
|
||||
if (samples == NULL || size < SIGNAL_MIN_SAMPLES) return;
|
||||
if (samples == NULL || size < SIGNAL_MIN_SAMPLES) {
|
||||
return;
|
||||
}
|
||||
|
||||
int acc_off = 0;
|
||||
uint32_t offset_size = size - SIGNAL_IGNORE_FIRST_SAMPLES;
|
||||
|
@ -458,7 +460,14 @@ static size_t findModStart(const uint8_t *src, size_t size, uint8_t expWaveSize)
|
|||
} else {
|
||||
waveSizeCnt++;
|
||||
}
|
||||
if (thresholdCnt > 10) break;
|
||||
|
||||
if (thresholdCnt > 10) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (g_debugMode == 2) {
|
||||
prnt("DEBUG: threshold Count reached at index %zu, count: %u", i, thresholdCnt);
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue