Fix and improve Power Monitor (#21551)

This commit is contained in:
gmarsh authored and GitHub committed 2021-04-13 15:17:52 -05:00
1 parent 84c79d7531
commit a5f0075a60
8 files changed
+37 -36

No files matched your search

+3 -6
View File
@@ -498,12 +498,9 @@
// Power Monitor sensors
#if EITHER(POWER_MONITOR_CURRENT, POWER_MONITOR_VOLTAGE)
#define HAS_POWER_MONITOR 1
#endif
#if ENABLED(POWER_MONITOR_CURRENT) && defined(POWER_MONITOR_FIXED_VOLTAGE)
#define HAS_POWER_MONITOR_VREF 1
#endif
#if BOTH(HAS_POWER_MONITOR_VREF, POWER_MONITOR_CURRENT)
#define HAS_POWER_MONITOR_WATTS 1
#if ENABLED(POWER_MONITOR_CURRENT) && (ENABLED(POWER_MONITOR_VOLTAGE) || defined(POWER_MONITOR_FIXED_VOLTAGE))
#define HAS_POWER_MONITOR_WATTS 1
#endif
#endif
// Flag if an EEPROM type is pre-selected