From bfa81b801e1516388a8c718cc1ae8322e4e74c5f Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Sat, 30 Jul 2022 21:54:28 +0200 Subject: [PATCH] fix compiler Werror --- EEStore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EEStore.cpp b/EEStore.cpp index 89577aa..4978f35 100644 --- a/EEStore.cpp +++ b/EEStore.cpp @@ -49,7 +49,7 @@ void EEStore::init() { if (strncmp(eeStore->data.id, EESTORE_ID, sizeof(EESTORE_ID)) != 0) { // if not, create blank eeStore structure (no // turnouts, no sensors) and save it back to EEPROM - strncpy(eeStore->data.id, EESTORE_ID, sizeof(EESTORE_ID)); + strncpy(eeStore->data.id, EESTORE_ID, sizeof(EESTORE_ID)+0); eeStore->data.nTurnouts = 0; eeStore->data.nSensors = 0; eeStore->data.nOutputs = 0; @@ -98,7 +98,7 @@ int EEStore::pointer() { return (eeAddress); } /////////////////////////////////////////////////////////////////////////////// void EEStore::dump(int num) { - byte b; + byte b = 0; DIAG(F("Addr 0x char")); for (int n = 0; n < num; n++) { EEPROM.get(n, b);