From 91e797eee2cf4fd1c8b9ae6ffd6806584fac2b83 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sergi=20Hern=C3=A1ndez?= <shernand@iri.upc.edu>
Date: Tue, 2 Aug 2016 22:08:30 +0200
Subject: [PATCH] Changed the voltgae threshold to activate the low battery
 alarm (set to 9V)

---
 controllers/include/cm510_cfg.h | 2 +-
 controllers/include/cont_cfg.h  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/controllers/include/cm510_cfg.h b/controllers/include/cm510_cfg.h
index 5477576..c15aa91 100644
--- a/controllers/include/cm510_cfg.h
+++ b/controllers/include/cm510_cfg.h
@@ -6,7 +6,7 @@
 // controller configuration parameters
 #define ADC_MAX_NUM_SAMPLES                     16
 #define ADC_SAMPLE_PERIOD_MS                    40
-#define ADC_VOLTAGE_ALARM_TH                    559
+#define ADC_VOLTAGE_ALARM_TH                    450 
 #define ADC_VOLTAGE_ALARM_WINDOW                20
 #define ADC_VOLTAGE_ALARM_NOTE                  NOTE_LA
 #define ADC_VOLTAGE_ALARM_TIME_ON               30
diff --git a/controllers/include/cont_cfg.h b/controllers/include/cont_cfg.h
index 985b7b9..bbb7e6a 100644
--- a/controllers/include/cont_cfg.h
+++ b/controllers/include/cont_cfg.h
@@ -13,7 +13,7 @@
 #endif 
 
 #ifndef ADC_VOLTAGE_ALARM_TH
-  #define ADC_VOLTAGE_ALARM_TH        559
+  #define ADC_VOLTAGE_ALARM_TH        450
 #endif
 
 #ifndef ADC_VOLTAGE_ALARM_WINDOW      
-- 
GitLab