Skip to content

Commit

Permalink
Fixed inverted direction on I2S
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchBradley committed Oct 10, 2024
1 parent 859c0e0 commit 6c07910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FluidNC/esp32/i2s_engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6c07910

Please sign in to comment.