mirror of
https://github.com/MrUnknownDE/OpenIris-ESPIDF.git
synced 2026-04-19 06:23:44 +02:00
Fix: Let ESP32 compile successfully
This commit is contained in:
@@ -16,6 +16,8 @@ public:
|
||||
|
||||
// convenience: combined sampling and compute; returns mA
|
||||
float getCurrentMilliAmps() const;
|
||||
//
|
||||
float getBatteryVoltageMilliVolts() const;
|
||||
|
||||
// Whether monitoring is enabled by Kconfig
|
||||
static constexpr bool isEnabled()
|
||||
|
||||
@@ -3,12 +3,6 @@
|
||||
|
||||
static const char *TAG_CM = "[CurrentMonitor]";
|
||||
|
||||
CurrentMonitor::CurrentMonitor()
|
||||
{
|
||||
// empty as esp32 doesn't support this
|
||||
// but without a separate implementation, the linker will complain :c
|
||||
}
|
||||
|
||||
void CurrentMonitor::setup()
|
||||
{
|
||||
ESP_LOGI(TAG_CM, "LED current monitoring disabled");
|
||||
@@ -18,25 +12,3 @@ float CurrentMonitor::getCurrentMilliAmps() const
|
||||
{
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
float CurrentMonitor::pollAndGetMilliAmps()
|
||||
{
|
||||
sampleOnce();
|
||||
return getCurrentMilliAmps();
|
||||
}
|
||||
|
||||
void CurrentMonitor::sampleOnce()
|
||||
{
|
||||
(void)0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_MONITORING_LED_CURRENT
|
||||
void CurrentMonitor::init_adc()
|
||||
{
|
||||
}
|
||||
|
||||
int CurrentMonitor::read_mv_once()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
@@ -23,3 +23,12 @@ void MonitoringManager::taskEntry(void *arg)
|
||||
void MonitoringManager::run()
|
||||
{
|
||||
}
|
||||
|
||||
float MonitoringManager::getCurrentMilliAmps() const {
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
float MonitoringManager::getBatteryVoltageMilliVolts() const
|
||||
{
|
||||
return 0.0f;
|
||||
}
|
||||
Reference in New Issue
Block a user