mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
fix a few cppcheck warnings
This commit is contained in:
parent
d97f417ee6
commit
3aeb5c493f
13 changed files with 44 additions and 41 deletions
|
@ -1025,7 +1025,7 @@ int DetectNRZClock(uint8_t *dest, size_t size, int clock, size_t *clockStartIdx)
|
|||
}
|
||||
|
||||
uint8_t best = 0;
|
||||
for (int m = ARRAYLEN(peaksdet); m > 0; m--) {
|
||||
for (int m = ARRAYLEN(peaksdet) - 1; m >= 0; m--) {
|
||||
if ((peaksdet[m] >= (peaksdet[best] - 1)) && (peaksdet[m] <= peaksdet[best] + 1) && lowestTransition) {
|
||||
if (clk[m] > (lowestTransition - (clk[m] / 8)) && clk[m] < (lowestTransition + (clk[m] / 8))) {
|
||||
best = m;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue