Add clarifying note about AHT20 also being included with AHT10 library (#6787)

* Update AHT10.h

Add clarifying note about AHT20 also being included

* Update AHT10.cpp

Add clarifying note about AHT20 also being included
This commit is contained in:
Tom
2025-05-11 10:17:37 +01:00
committed by GitHub
parent b208e1924f
commit 62e1974d09
2 changed files with 10 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
/*
* Worth noting that both the AHT10 and AHT20 are supported without alteration.
*/
#include "configuration.h"
#if !MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR && __has_include(<Adafruit_AHTX0.h>)
@@ -41,4 +45,4 @@ bool AHT10Sensor::getMetrics(meshtastic_Telemetry *measurement)
return true;
}
#endif
#endif

View File

@@ -1,3 +1,7 @@
/*
* Worth noting that both the AHT10 and AHT20 are supported without alteration.
*/
#include "configuration.h"
#if !MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR && __has_include(<Adafruit_AHTX0.h>)
@@ -20,4 +24,4 @@ class AHT10Sensor : public TelemetrySensor
virtual bool getMetrics(meshtastic_Telemetry *measurement) override;
};
#endif
#endif