Switch EnvironmentTelemetry to use UnitConversions (#4972)

We already have a central class for unit conversions, switch
EnvironmentTelemetry to that in preparation for HealthTelemetry.
This commit is contained in:
Tom Fifield
2024-10-06 20:55:21 +08:00
committed by GitHub
parent 001a845ac3
commit bb9f003c24
2 changed files with 4 additions and 8 deletions

View File

@@ -52,7 +52,6 @@ class EnvironmentTelemetryModule : private concurrency::OSThread, public Protobu
meshtastic_AdminMessage *response) override;
private:
float CelsiusToFahrenheit(float c);
bool firstTime = 1;
meshtastic_MeshPacket *lastMeasurementPacket;
uint32_t sendToPhoneIntervalMs = SECONDS_IN_MINUTE * 1000; // Send to phone every minute