lf config s update

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

No files matched your search

+2 -2
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));