mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
data undec: interpolate
This commit is contained in:
parent
1e0fd49bdd
commit
1acd0a516a
1 changed files with 1 additions and 1 deletions
|
@ -1037,7 +1037,7 @@ static int CmdUndec(const char *Cmd) {
|
|||
while (g_index < GraphTraceLen && s_index + factor < MAX_GRAPH_TRACE_LEN) {
|
||||
int count = 0;
|
||||
for (count = 0; count < factor && s_index + count < MAX_GRAPH_TRACE_LEN; count++)
|
||||
swap[s_index + count] = GraphBuffer[g_index];
|
||||
swap[s_index + count] = ((double)(factor - count)/(factor - 1))*GraphBuffer[g_index] + ((double)count/factor)*GraphBuffer[g_index + 1];
|
||||
s_index += count;
|
||||
g_index++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue