Skip to content

Commit

Permalink
4way: fix set high in 4way
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Aug 5, 2024
1 parent 83d0796 commit ca0ddf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/driver/serial_4way.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ serial_esc4way_ack_t serial_4way_send(uint8_t cmd, uint16_t addr, const uint8_t
device.selected_esc = input[0];

bool reboot_esc = false;
if ((addr & 0xFF) == 1) {
if (addr) {
reboot_esc = true;
}

Expand Down
2 changes: 1 addition & 1 deletion src/driver/serial_4way_avr_bl.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ void avr_bl_reboot(gpio_pins_t pin) {

esc_set_low(pin);
time_delay_ms(300);
esc_is_high(pin);
esc_set_high(pin);

esc_set_input(pin);
}
Expand Down

0 comments on commit ca0ddf5

Please sign in to comment.