aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--hwdef-BLF_GT.h4
-rw-r--r--hwdef-Emisar_D1Sv2.h6
-rw-r--r--hwdef-Mateminco_MF01S.h4
3 files changed, 8 insertions, 6 deletions
diff --git a/hwdef-BLF_GT.h b/hwdef-BLF_GT.h
index dd8d80a..8ad99c7 100644
--- a/hwdef-BLF_GT.h
+++ b/hwdef-BLF_GT.h
@@ -46,10 +46,10 @@
// Raw ADC readings at 4.4V and 2.2V (in-between, we assume values form a straight line)
#ifndef ADC_44
-#define ADC_44 184
+#define ADC_44 (184*4)
#endif
#ifndef ADC_22
-#define ADC_22 92
+#define ADC_22 (92*4)
#endif
#define TEMP_CHANNEL 0b00001111
diff --git a/hwdef-Emisar_D1Sv2.h b/hwdef-Emisar_D1Sv2.h
index 856643b..d76d701 100644
--- a/hwdef-Emisar_D1Sv2.h
+++ b/hwdef-Emisar_D1Sv2.h
@@ -78,10 +78,12 @@
// (voltage - D1) * (R2/(R2+R1) * 256 / 1.1)
// D1, R1, R2 = 0, 330, 100
#ifndef ADC_44
-#define ADC_44 235
+//#define ADC_44 981 // raw value at 4.40V
+#define ADC_44 967 // manually tweaked so 4.16V will blink out 4.2
#endif
#ifndef ADC_22
-#define ADC_22 116
+//#define ADC_22 489 // raw value at 2.20V
+#define ADC_22 482 // manually tweaked so 4.16V will blink out 4.2
#endif
#define TEMP_CHANNEL 0b00001111
diff --git a/hwdef-Mateminco_MF01S.h b/hwdef-Mateminco_MF01S.h
index ad6194c..03508ab 100644
--- a/hwdef-Mateminco_MF01S.h
+++ b/hwdef-Mateminco_MF01S.h
@@ -46,10 +46,10 @@
// Raw ADC readings at 4.4V and 2.2V (in-between, we assume values form a straight line)
#ifndef ADC_44
-#define ADC_44 234
+#define ADC_44 (234*4)
#endif
#ifndef ADC_22
-#define ADC_22 117
+#define ADC_22 (117*4)
#endif
#define TEMP_CHANNEL 0b00001111