mirror of
https://github.com/Proxmark/proxmark3.git
synced 2024-09-21 15:26:35 +08:00
Adjust global variable name
This commit is contained in:
parent
2b11c7c750
commit
fac69c3d76
|
@ -35,7 +35,7 @@
|
||||||
#include "cmdlfviking.h" // for viking menu
|
#include "cmdlfviking.h" // for viking menu
|
||||||
#include "cmdlfcotag.h" // for COTAG menu
|
#include "cmdlfcotag.h" // for COTAG menu
|
||||||
|
|
||||||
bool threshold_set = false;
|
bool g_lf_threshold_set = false;
|
||||||
static int CmdHelp(const char *Cmd);
|
static int CmdHelp(const char *Cmd);
|
||||||
|
|
||||||
|
|
||||||
|
@ -512,7 +512,7 @@ int CmdLFSetConfig(const char *Cmd)
|
||||||
cmdp+=2;
|
cmdp+=2;
|
||||||
if(!errors) {
|
if(!errors) {
|
||||||
trigger_threshold = unsigned_trigg;
|
trigger_threshold = unsigned_trigg;
|
||||||
if (trigger_threshold > 0) threshold_set = true;
|
if (trigger_threshold > 0) g_lf_threshold_set = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'b':
|
case 'b':
|
||||||
|
@ -572,7 +572,7 @@ int CmdLFRead(const char *Cmd)
|
||||||
UsbCommand c = {CMD_ACQUIRE_RAW_ADC_SAMPLES_125K, {arg1,0,0}};
|
UsbCommand c = {CMD_ACQUIRE_RAW_ADC_SAMPLES_125K, {arg1,0,0}};
|
||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
SendCommand(&c);
|
SendCommand(&c);
|
||||||
if (threshold_set) {
|
if (g_lf_threshold_set) {
|
||||||
WaitForResponse(CMD_ACK,NULL);
|
WaitForResponse(CMD_ACK,NULL);
|
||||||
} else {
|
} else {
|
||||||
if ( !WaitForResponseTimeout(CMD_ACK,NULL,2500) ) {
|
if ( !WaitForResponseTimeout(CMD_ACK,NULL,2500) ) {
|
||||||
|
|
|
@ -288,6 +288,7 @@ int cleanAskRawDemod(uint8_t *BinStream, size_t *size, int clk, int invert, int
|
||||||
}
|
}
|
||||||
|
|
||||||
//by marshmellow
|
//by marshmellow
|
||||||
|
//amplify based on ask edge detection
|
||||||
void askAmp(uint8_t *BitStream, size_t size)
|
void askAmp(uint8_t *BitStream, size_t size)
|
||||||
{
|
{
|
||||||
uint8_t Last = 128;
|
uint8_t Last = 128;
|
||||||
|
|
Loading…
Reference in a new issue