mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-07-07 05:31:17 -07:00
fix compile issue with gcc 9.1.0 (issue #868)
This commit is contained in:
parent
d8ecc98a8e
commit
70dbfc3fc7
3 changed files with 15 additions and 15 deletions
|
@ -998,7 +998,7 @@ void UsbPacketReceived(uint8_t *packet, int len)
|
||||||
switch(c->cmd) {
|
switch(c->cmd) {
|
||||||
#ifdef WITH_LF
|
#ifdef WITH_LF
|
||||||
case CMD_SET_LF_SAMPLING_CONFIG:
|
case CMD_SET_LF_SAMPLING_CONFIG:
|
||||||
setSamplingConfig((sample_config *) c->d.asBytes);
|
setSamplingConfig(c->d.asBytes);
|
||||||
break;
|
break;
|
||||||
case CMD_ACQUIRE_RAW_ADC_SAMPLES_125K:
|
case CMD_ACQUIRE_RAW_ADC_SAMPLES_125K:
|
||||||
cmd_send(CMD_ACK,SampleLF(c->arg[0], c->arg[1]),0,0,0,0);
|
cmd_send(CMD_ACK,SampleLF(c->arg[0], c->arg[1]),0,0,0,0);
|
||||||
|
|
|
@ -39,8 +39,8 @@ void printConfig()
|
||||||
* @brief setSamplingConfig
|
* @brief setSamplingConfig
|
||||||
* @param sc
|
* @param sc
|
||||||
*/
|
*/
|
||||||
void setSamplingConfig(sample_config *sc)
|
void setSamplingConfig(uint8_t *config_data) {
|
||||||
{
|
sample_config *sc = (sample_config *)config_data;
|
||||||
if (sc->divisor != 0) config.divisor = sc->divisor;
|
if (sc->divisor != 0) config.divisor = sc->divisor;
|
||||||
if (sc->bits_per_sample != 0) config.bits_per_sample = sc->bits_per_sample;
|
if (sc->bits_per_sample != 0) config.bits_per_sample = sc->bits_per_sample;
|
||||||
if (sc->decimation != 0) config.decimation = sc->decimation;
|
if (sc->decimation != 0) config.decimation = sc->decimation;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef LFSAMPLING_H
|
#ifndef LFSAMPLING_H__
|
||||||
#define LFSAMPLING_H
|
#define LFSAMPLING_H__
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* acquisition of Cotag LF signal. Similar to other LF, since the Cotag has such long datarate RF/384
|
* acquisition of Cotag LF signal. Similar to other LF, since the Cotag has such long datarate RF/384
|
||||||
|
@ -61,7 +61,7 @@ void LFSetupFPGAForADC(int divisor, bool lf_field);
|
||||||
* @brief setSamplingConfig
|
* @brief setSamplingConfig
|
||||||
* @param sc
|
* @param sc
|
||||||
*/
|
*/
|
||||||
void setSamplingConfig(sample_config *sc);
|
void setSamplingConfig(uint8_t *config_data);
|
||||||
|
|
||||||
sample_config *getSamplingConfig();
|
sample_config *getSamplingConfig();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue