Fix: 'lf config' - calling without param messes up all device settings.

This commit is contained in:
iceman1001 committed 2020-01-09 19:28:44 +01:00
1 parent 1d6ef96d12
commit 0869cbc6ad
5 files changed
+116 -85

No files matched your search

+6 -6
View File
@@ -113,12 +113,12 @@ typedef struct {
// A struct used to send sample-configs over USB
typedef struct {
uint8_t decimation;
uint8_t bits_per_sample;
bool averaging;
int divisor;
int trigger_threshold;
uint32_t samples_to_skip;
int8_t decimation;
int8_t bits_per_sample;
int8_t averaging;
int16_t divisor;
int16_t trigger_threshold;
int32_t samples_to_skip;
bool verbose;
} PACKED sample_config;
/*