1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-25 14:42:21 +01:00

Reduce ESP_LOGCONFIG calls (#9026)

This commit is contained in:
J. Nick Koston
2025-06-08 19:02:30 -05:00
committed by GitHub
parent 80dddb4cae
commit c0b05ada1a
218 changed files with 1569 additions and 931 deletions

View File

@@ -7,9 +7,11 @@ namespace esphome {
namespace stepper {
#define LOG_STEPPER(this) \
ESP_LOGCONFIG(TAG, " Acceleration: %.0f steps/s^2", this->acceleration_); \
ESP_LOGCONFIG(TAG, " Deceleration: %.0f steps/s^2", this->deceleration_); \
ESP_LOGCONFIG(TAG, " Max Speed: %.0f steps/s", this->max_speed_);
ESP_LOGCONFIG(TAG, \
" Acceleration: %.0f steps/s^2\n" \
" Deceleration: %.0f steps/s^2\n" \
" Max Speed: %.0f steps/s", \
this->acceleration_, this->deceleration_, this->max_speed_);
class Stepper {
public: