aboutsummaryrefslogtreecommitdiff
path: root/hwdef-BLF_Q8.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2018-11-03 18:55:31 -0600
committerSelene ToyKeeper2018-11-03 18:55:31 -0600
commit94ba77de5c2c4bf8df3f23ac9ab397a360a75e69 (patch)
tree87cd0f266772a88019c7eedb285278579edcb49c /hwdef-BLF_Q8.h
parentforgot to add the Sofirn SP36 config file earlier, oops (diff)
downloadanduril-94ba77de5c2c4bf8df3f23ac9ab397a360a75e69.tar.gz
anduril-94ba77de5c2c4bf8df3f23ac9ab397a360a75e69.tar.bz2
anduril-94ba77de5c2c4bf8df3f23ac9ab397a360a75e69.zip
Made it easier to override hwdef-*.h values in cfg-*.h files.
Diffstat (limited to 'hwdef-BLF_Q8.h')
-rw-r--r--hwdef-BLF_Q8.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/hwdef-BLF_Q8.h b/hwdef-BLF_Q8.h
index f00c392..6e13faf 100644
--- a/hwdef-BLF_Q8.h
+++ b/hwdef-BLF_Q8.h
@@ -1,16 +1,17 @@
/* BLF Q8 driver layout
+ * Q8 driver is the same as a D4, basically
*/
-// Q8 driver is the same as a D4, basically
-#include "hwdef-Emisar_D4.h"
// ... except the Q8 has a lighted button
#ifndef AUXLED_PIN
#define AUXLED_PIN PB4 // pin 3
#endif
-// average drop across diode on this hardware
-#ifdef VOLTAGE_FUDGE_FACTOR
-#undef VOLTAGE_FUDGE_FACTOR
-#endif
+// ... and slightly different calibration
+#ifndef VOLTAGE_FUDGE_FACTOR
#define VOLTAGE_FUDGE_FACTOR 7 // add 0.35V
+#endif
+
+// Q8 driver is the same as a D4, basically
+#include "hwdef-Emisar_D4.h"