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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user