#bugfix Fixed problem with config resetting on every boot, minor fix to i2c communication
This commit is contained in:
parent
da347640e4
commit
ae09b56ab3
2 changed files with 2 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ extern int TRG_DUR;
|
||||||
extern int Hyst; // Hysteresis value for ADC measurements
|
extern int Hyst; // Hysteresis value for ADC measurements
|
||||||
|
|
||||||
#define LOGIC_DEFAULT 0
|
#define LOGIC_DEFAULT 0
|
||||||
#define LOGIC_ADDRESS 32
|
#define LOGIC_ADDRESS 22
|
||||||
extern int LOGIC; // Trigger logic scheme, Active LOW is default
|
extern int LOGIC; // Trigger logic scheme, Active LOW is default
|
||||||
|
|
||||||
#define PZDET_DEFAULT 0
|
#define PZDET_DEFAULT 0
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ void i2cWrite(uint8_t *buffer, int offset, long data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void i2cReportConfig() {
|
void i2cReportConfig() {
|
||||||
uint8_t length = 20 + sizeof(PP_VERSION) - 1;
|
uint8_t length = 22 + sizeof(PP_VERSION) - 1;
|
||||||
if (length > 32) {
|
if (length > 32) {
|
||||||
length = 32;
|
length = 32;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue