Skip to content

Commit ba525ff

Browse files
committed
esp32idf6: disable pulse counter for idf6
1 parent 06042a0 commit ba525ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FastAccelStepper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ bool FastAccelStepper::init(FastAccelStepperEngine* engine, uint8_t num,
526526

527527
_queue_num = num;
528528
bool success = fas_queue[_queue_num].init(engine, _queue_num, step_pin);
529-
#if defined(SUPPORT_ESP32_PULSE_COUNTER) && (ESP_IDF_VERSION_MAJOR >= 5)
529+
#if defined(SUPPORT_ESP32_PULSE_COUNTER) && (ESP_IDF_VERSION_MAJOR == 5)
530530
_attached_pulse_unit = NULL;
531531
#endif
532532
#if defined(SUPPORT_ESP32_PULSE_COUNTER) && (ESP_IDF_VERSION_MAJOR == 4)

0 commit comments

Comments
 (0)