[mopeka_std_check] Combine log statements to reduce loop blocking (#12911)

This commit is contained in:
J. Nick Koston
2026-01-04 11:54:31 -10:00
committed by GitHub
parent ca574a1550
commit b8d93f2150

View File

@@ -17,10 +17,12 @@ static const uint16_t MANUFACTURER_ID = 0x000D;
static constexpr size_t MOPEKA_MAX_LOG_BYTES = 32;
void MopekaStdCheck::dump_config() {
ESP_LOGCONFIG(TAG, "Mopeka Std Check");
ESP_LOGCONFIG(TAG, " Propane Butane mix: %.0f%%", this->propane_butane_mix_ * 100);
ESP_LOGCONFIG(TAG, " Tank distance empty: %" PRIi32 "mm", this->empty_mm_);
ESP_LOGCONFIG(TAG, " Tank distance full: %" PRIi32 "mm", this->full_mm_);
ESP_LOGCONFIG(TAG,
"Mopeka Std Check\n"
" Propane Butane mix: %.0f%%\n"
" Tank distance empty: %" PRIi32 "mm\n"
" Tank distance full: %" PRIi32 "mm",
this->propane_butane_mix_ * 100, this->empty_mm_, this->full_mm_);
LOG_SENSOR(" ", "Level", this->level_);
LOG_SENSOR(" ", "Temperature", this->temperature_);
LOG_SENSOR(" ", "Battery Level", this->battery_level_);