fixed log info messages and removed unused dependency

This commit is contained in:
Domingo 2025-05-23 16:02:00 +02:00
parent fe263ee32e
commit 0017a78850

View File

@ -6,13 +6,12 @@
#include "LTR390UVSensor.h" #include "LTR390UVSensor.h"
#include "TelemetrySensor.h" #include "TelemetrySensor.h"
#include <Adafruit_LTR390.h> #include <Adafruit_LTR390.h>
#include <typeinfo>
LTR390UVSensor::LTR390UVSensor() : TelemetrySensor(meshtastic_TelemetrySensorType_LTR390UV, "LTR390UV") {} LTR390UVSensor::LTR390UVSensor() : TelemetrySensor(meshtastic_TelemetrySensorType_LTR390UV, "LTR390UV") {}
int32_t LTR390UVSensor::runOnce() int32_t LTR390UVSensor::runOnce()
{ {
LOG_INFO("Init sensor: %s with x3 gain and 18bit resolution", sensorName); LOG_INFO("Init sensor: %s", sensorName);
if (!hasSensor()) { if (!hasSensor()) {
return DEFAULT_SENSOR_MINIMUM_WAIT_TIME_BETWEEN_READS; return DEFAULT_SENSOR_MINIMUM_WAIT_TIME_BETWEEN_READS;
} }