mirror of
https://github.com/SlimeVR/SlimeVR-Tracker-ESP.git
synced 2026-04-06 02:01:57 +02:00
Debug logging
This commit is contained in:
@@ -21,13 +21,12 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "mlx90393.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <cstdint>
|
||||
|
||||
#include "GlobalVars.h"
|
||||
#include "Wire.h"
|
||||
#include "mlx90393.h"
|
||||
|
||||
namespace SlimeVR::Sensors {
|
||||
|
||||
@@ -50,6 +49,7 @@ void MLX90393::motionSetup() {
|
||||
m_hwInterface->swapIn();
|
||||
|
||||
if (!I2CSCAN::hasDevOnBus(address)) {
|
||||
m_Logger.debug("Couldn't find device on bus!");
|
||||
working = false;
|
||||
return;
|
||||
}
|
||||
@@ -75,6 +75,7 @@ void MLX90393::motionSetup() {
|
||||
delayMicroseconds(10);
|
||||
|
||||
if (status.error || !status.burstMode) {
|
||||
m_Logger.debug("Burst mode couldn't be started!");
|
||||
working = false;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user