From 6c079109b0c0f34d7fa0cea688ed7e5e8da9ff89 Mon Sep 17 00:00:00 2001 From: Mitch Bradley Date: Thu, 10 Oct 2024 07:09:23 -1000 Subject: [PATCH] Fixed inverted direction on I2S --- FluidNC/esp32/i2s_engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FluidNC/esp32/i2s_engine.c b/FluidNC/esp32/i2s_engine.c index c228b6190..fe4df8c25 100644 --- a/FluidNC/esp32/i2s_engine.c +++ b/FluidNC/esp32/i2s_engine.c @@ -423,7 +423,7 @@ static int init_step_pin(int step_pin, int step_invert) { // pin states. Later, that variable will be transferred to // the I2S FIFO to change all the affected pins at once. static IRAM_ATTR void set_dir_pin(int pin, int level) { - i2s_out_write(pin, level); + i2s_out_write(pin, !level); } uint32_t new_port_data;