[mopeka_std_check] Combine log statements to reduce loop blocking (#12911)
This commit is contained in:
1 parent
ca574a1550
commit
b8d93f2150
1 file changed
+6
-4
@@ -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_);
|
||||
|
||||
Reference in new issue
Block a user