We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f73179 commit 220e5f9Copy full SHA for 220e5f9
src/board/system76/common/include/board/battery.h
@@ -18,8 +18,12 @@
18
19
#define BATTERY_INITIALIZED BIT(7)
20
21
-#define BATTERY_CHARGER_VOLTAGE_AC 19
22
-#define BATTERY_CHARGER_VOLTAGE_PD 20 // XXX: Only valid for HPB models
+#ifndef AC_ADAPTER_VOLTAGE
+#define AC_ADAPTER_VOLTAGE 19
23
+#endif
24
+
25
+#define BATTERY_CHARGER_VOLTAGE_AC AC_ADAPTER_VOLTAGE
26
+#define BATTERY_CHARGER_VOLTAGE_PD 20
27
28
struct battery_info {
29
uint16_t temp;
0 commit comments