lf config s update

This commit is contained in:
mwalker33
2019-09-30 19:41:25 +10:00
parent 40b1d3bea7
commit f5d7963780
2 changed files with 6 additions and 7 deletions

View File

@@ -441,7 +441,7 @@ int CmdLFSetConfig(const char *Cmd) {
cmdp += 2;
break;
case 's':
samples_to_skip = param_get32ex(Cmd,cmdp+1,0,10);
samples_to_skip = param_get32ex(Cmd, cmdp + 1, 0, 10);
cmdp+=2;
break;
default:
@@ -457,7 +457,7 @@ int CmdLFSetConfig(const char *Cmd) {
//Bps is limited to 8
if (bps >> 4) bps = 8;
sample_config config = { decimation, bps, averaging, divisor, trigger_threshold,samples_to_skip };
sample_config config = { decimation, bps, averaging, divisor, trigger_threshold, samples_to_skip };
clearCommandBuffer();
SendCommandNG(CMD_LF_SAMPLING_SET_CONFIG, (uint8_t *)&config, sizeof(sample_config));