Skip to content

Commit

Permalink
adjust serial 4 way pass-through order to match with profile
Browse files Browse the repository at this point in the history
  • Loading branch information
kikoqiu committed Oct 17, 2023
1 parent 11c9aab commit 3b53504
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/driver/serial_4way.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <string.h>

#include "core/debug.h"
#include "core/profile.h"
#include "driver/gpio.h"
#include "driver/motor.h"
#include "driver/serial_4way.h"
Expand Down Expand Up @@ -132,7 +133,7 @@ uint8_t serial_4way_init() {
time_delay_ms(250);

for (uint32_t i = 0; i < MOTOR_PIN_MAX; i++) {
const gpio_pins_t pin = target.motor_pins[i];
const gpio_pins_t pin = target.motor_pins[profile.motor.motor_pins[i]];
esc_pins[i] = pin;
avr_bl_init_pin(pin);
}
Expand Down

0 comments on commit 3b53504

Please sign in to comment.