We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2a72717 + 8cf335a commit 0342321Copy full SHA for 0342321
firmware/src/acq/opamp.h
@@ -22,6 +22,9 @@
22
#include "common/error.h"
23
24
25
+#define OPAMP_OFFSET_ZERO 2048
26
+
27
28
typedef struct bl_acq_opamp_s bl_acq_opamp_t;
29
30
#if (BL_REVISION == 1)
firmware/src/acq/source.c
@@ -205,7 +205,7 @@ enum bl_error bl_acq_source_configure(enum bl_acq_source source)
205
bl_acq_source_config_t *config = &src->config;
206
207
bool opamp_needed = (config->opamp_gain > 1) ||
208
- (config->opamp_offset != 0);
+ (config->opamp_offset != OPAMP_OFFSET_ZERO);
209
if (opamp_needed && (src->opamp == NULL)) {
210
return BL_ERROR_HARDWARE_CONFLICT;
211
}
0 commit comments