mirror of
https://github.com/esphome/esphome.git
synced 2026-05-31 17:06:40 +08:00
[internal_temperature] Fix internal Temperature discrepancy on BK7231T (#15771)
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com>
This commit is contained in:
@@ -20,8 +20,6 @@ void InternalTemperatureSensor::update() {
|
|||||||
success = (result == 0);
|
success = (result == 0);
|
||||||
#if defined(USE_LIBRETINY_VARIANT_BK7231N)
|
#if defined(USE_LIBRETINY_VARIANT_BK7231N)
|
||||||
temperature = raw * -0.38f + 156.0f;
|
temperature = raw * -0.38f + 156.0f;
|
||||||
#elif defined(USE_LIBRETINY_VARIANT_BK7231T)
|
|
||||||
temperature = raw * 0.04f;
|
|
||||||
#else // USE_LIBRETINY_VARIANT
|
#else // USE_LIBRETINY_VARIANT
|
||||||
temperature = raw * 0.128f;
|
temperature = raw * 0.128f;
|
||||||
#endif // USE_LIBRETINY_VARIANT
|
#endif // USE_LIBRETINY_VARIANT
|
||||||
|
|||||||
Reference in New Issue
Block a user