Merge pull request #78 from loredan/master
Fixed problem with config resetting on every boot
This commit is contained in:
commit
a037011fd9
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
|
||||
|
||||
#define LOGIC_DEFAULT 0
|
||||
#define LOGIC_ADDRESS 32
|
||||
#define LOGIC_ADDRESS 22
|
||||
extern int LOGIC; // Trigger logic scheme, Active LOW is default
|
||||
|
||||
#define PZDET_DEFAULT 0
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ void i2cWrite(uint8_t *buffer, int offset, long data) {
|
|||
}
|
||||
|
||||
void i2cReportConfig() {
|
||||
uint8_t length = 20 + sizeof(PP_VERSION) - 1;
|
||||
uint8_t length = 22 + sizeof(PP_VERSION) - 1;
|
||||
if (length > 32) {
|
||||
length = 32;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue