mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-24 23:25:40 -07:00
fix ltrim missing param
This commit is contained in:
parent
341bebdfcc
commit
a1d21e56d8
2 changed files with 3 additions and 3 deletions
|
@ -2774,7 +2774,7 @@ static int try_detect_modulation(void) {
|
||||||
// allow undo
|
// allow undo
|
||||||
save_restoreGB(GRAPH_SAVE);
|
save_restoreGB(GRAPH_SAVE);
|
||||||
// skip first 160 samples to allow antenna to settle in (psk gets inverted occasionally otherwise)
|
// skip first 160 samples to allow antenna to settle in (psk gets inverted occasionally otherwise)
|
||||||
CmdLtrim("160");
|
CmdLtrim("-i 160");
|
||||||
if ((PSKDemod(0, 0, 6, false) == PM3_SUCCESS)) {
|
if ((PSKDemod(0, 0, 6, false) == PM3_SUCCESS)) {
|
||||||
tests[hits].modulation = DEMOD_PSK1;
|
tests[hits].modulation = DEMOD_PSK1;
|
||||||
tests[hits].bitrate = clk;
|
tests[hits].bitrate = clk;
|
||||||
|
|
|
@ -1127,7 +1127,7 @@ bool t55xxTryDetectModulationEx(uint8_t downlink_mode, bool print_config, uint32
|
||||||
// allow undo
|
// allow undo
|
||||||
save_restoreGB(GRAPH_SAVE);
|
save_restoreGB(GRAPH_SAVE);
|
||||||
// skip first 160 samples to allow antenna to settle in (psk gets inverted occasionally otherwise)
|
// skip first 160 samples to allow antenna to settle in (psk gets inverted occasionally otherwise)
|
||||||
CmdLtrim("160");
|
CmdLtrim("-i 160");
|
||||||
if ((PSKDemod(0, 0, 6, false) == PM3_SUCCESS) && test(DEMOD_PSK1, &tests[hits].offset, &bitRate, clk, &tests[hits].Q5)) {
|
if ((PSKDemod(0, 0, 6, false) == PM3_SUCCESS) && test(DEMOD_PSK1, &tests[hits].offset, &bitRate, clk, &tests[hits].Q5)) {
|
||||||
tests[hits].modulation = DEMOD_PSK1;
|
tests[hits].modulation = DEMOD_PSK1;
|
||||||
tests[hits].bitrate = bitRate;
|
tests[hits].bitrate = bitRate;
|
||||||
|
@ -3555,7 +3555,7 @@ bool tryDetectP1(bool getData) {
|
||||||
// allow undo
|
// allow undo
|
||||||
// save_restoreGB(GRAPH_SAVE);
|
// save_restoreGB(GRAPH_SAVE);
|
||||||
// skip first 160 samples to allow antenna to settle in (psk gets inverted occasionally otherwise)
|
// skip first 160 samples to allow antenna to settle in (psk gets inverted occasionally otherwise)
|
||||||
//CmdLtrim("160");
|
//CmdLtrim("-i 160");
|
||||||
if ((PSKDemod(0, 0, 6, false) == PM3_SUCCESS) &&
|
if ((PSKDemod(0, 0, 6, false) == PM3_SUCCESS) &&
|
||||||
preambleSearchEx(DemodBuffer, preamble, sizeof(preamble), &DemodBufferLen, &startIdx, false) &&
|
preambleSearchEx(DemodBuffer, preamble, sizeof(preamble), &DemodBufferLen, &startIdx, false) &&
|
||||||
(DemodBufferLen == 32 || DemodBufferLen == 64)) {
|
(DemodBufferLen == 32 || DemodBufferLen == 64)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue