mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
t55xx detect/read/write/dump etc will fail if you set lf config to something. Moved the reset / restore of lf config to device side for T55XX readblock. t55xx sniff still obeys lf config since it uses lf sniff beneath.
This commit is contained in:
parent
7ec18a040b
commit
765d2acbb0
5 changed files with 27 additions and 35 deletions
|
@ -28,7 +28,18 @@ Default LF config is set to:
|
|||
samples_to_skip = 0
|
||||
verbose = YES
|
||||
*/
|
||||
static sample_config config = { 1, 8, 1, LF_DIVISOR_125, 0, 0, 1} ;
|
||||
|
||||
static sample_config def_config = {
|
||||
.decimation = 1,
|
||||
.bits_per_sample = 8,
|
||||
.averaging = 1,
|
||||
.divisor = LF_DIVISOR_125,
|
||||
.trigger_threshold = 0,
|
||||
.samples_to_skip = 0,
|
||||
.verbose = false,
|
||||
};
|
||||
|
||||
static sample_config config = { 1, 8, 1, LF_DIVISOR_125, 0, 0, true} ;
|
||||
|
||||
// Holds bit packed struct of samples.
|
||||
static BitstreamOut data = {0, 0, 0};
|
||||
|
@ -57,6 +68,11 @@ void printSamples(void) {
|
|||
print_stack_usage();
|
||||
}
|
||||
|
||||
|
||||
void setDefaultSamplingConfig(void) {
|
||||
setSamplingConfig(&def_config);
|
||||
}
|
||||
|
||||
/**
|
||||
* Called from the USB-handler to set the sampling configuration
|
||||
* The sampling config is used for standard reading and sniffing.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue