diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-12-28 20:23:36 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-12-28 20:23:36 +0100 |
commit | 96b3081127f2c89e4b2e04fa5ca6690f7cd1ea9a (patch) | |
tree | c64c0e80b4aae47e37631f2495b6b9f32058a5b3 /sw/main.cpp | |
parent | 24bba9db6d472e7be309232b8f8d18fdfa07cd2b (diff) | |
download | glutte-batteries-96b3081127f2c89e4b2e04fa5ca6690f7cd1ea9a.tar.gz glutte-batteries-96b3081127f2c89e4b2e04fa5ca6690f7cd1ea9a.tar.bz2 glutte-batteries-96b3081127f2c89e4b2e04fa5ca6690f7cd1ea9a.zip |
Add config.h
Diffstat (limited to 'sw/main.cpp')
-rw-r--r-- | sw/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/main.cpp b/sw/main.cpp index 77d394f..e4f0a67 100644 --- a/sw/main.cpp +++ b/sw/main.cpp @@ -22,6 +22,8 @@ * SOFTWARE. */ +#include "config.h" + #include <stdlib.h> #include <stdint.h> #include <stdio.h> @@ -404,7 +406,7 @@ int main() // One second blink interval pins_set_status(time_now.seconds_ % 2 == 0); -#if 0 +#if ENABLE_STORE_TO_EEPROM /* EEPROM has an endurance of at least 100'000 write/erase cycles. * (Datasheet 8.4 EEPROM Data Memory) * Storing every five hours gives us several years of endurance. |