* Update appmain.c

Patch to fix incorrect lf voltage reading when no lf antenna is connected.
v_lf134, v_lf125 should be set to 0 in case they are not updated later and leave it with an invalid random value.
This commit is contained in:
mwalker33 2021-10-14 19:05:19 +11:00 committed by GitHub
commit e72fbb4983
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -163,7 +163,9 @@ static void MeasureAntennaTuning(void) {
uint8_t results[256];
} PACKED payload;
memset(payload.results, 0, sizeof(payload.results));
// Need to clear all values to ensure non-random responses.
memset(&payload, 0, sizeof(payload));
// memset(payload.results, 0, sizeof(payload.results));
sample_config *sc = getSamplingConfig();
payload.divisor = sc->divisor;