Merge pull request #78 from loredan/master

Fixed problem with config resetting on every boot
This commit is contained in:
Alan Weinstock 2020-07-30 09:13:43 -07:00 committed by GitHub
commit a037011fd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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;
}