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 authored and bkleiner committed Nov 10, 2023
1 parent 5d8a4ec commit deb0c62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion src/io/quic.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define QUIC_MAGIC '#'
#define QUIC_HEADER_LEN 4

#define QUIC_PROTOCOL_VERSION MAKE_SEMVER(0, 2, 1)
#define QUIC_PROTOCOL_VERSION MAKE_SEMVER(0, 2, 2)

typedef enum {
QUIC_CMD_INVALID,
Expand Down

0 comments on commit deb0c62

Please sign in to comment.