mirror of
https://github.com/SlimeVR/SlimeVR-Tracker-ESP.git
synced 2026-04-06 02:01:57 +02:00
Implement new logger in batterymonitor.cpp
This commit is contained in:
@@ -39,7 +39,7 @@ void BatteryMonitor::Setup()
|
||||
}
|
||||
if (address == 0)
|
||||
{
|
||||
Serial.println(F("[ERR] MCP3021 not found on I2C bus"));
|
||||
m_Logger.error("MCP3021 not found on I2C bus");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <i2cscan.h>
|
||||
#include <I2Cdev.h>
|
||||
#include "ledmgr.h"
|
||||
#include "logging/Logger.h"
|
||||
|
||||
#if BATTERY_MONITOR == BAT_EXTERNAL
|
||||
#ifndef PIN_BATTERY_LEVEL
|
||||
@@ -59,6 +60,8 @@ private:
|
||||
#endif
|
||||
float voltage = -1;
|
||||
float level = -1;
|
||||
|
||||
SlimeVR::Logging::Logger m_Logger = SlimeVR::Logging::Logger("BatteryMonitor");
|
||||
};
|
||||
|
||||
#endif // SLIMEVR_BATTERYMONITOR_H_
|
||||
|
||||
Reference in New Issue
Block a user