Skip to content

Commit

Permalink
FIX: coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
r2axz committed Dec 2, 2020
1 parent 3fbbf40 commit 4f9b372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usb_cdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ static void usb_cdc_update_port_rts(int port) {
const gpio_pin_t *rts_pin = &device_config_get()->cdc_config.port_config[port].pins[cdc_pin_rts];
usb_cdc_state_t *cdc_state = &usb_cdc_states[port];
circ_buf_t *rx_buf = &cdc_state->rx_buf;
int rts_active = (circ_buf_space(rx_buf->head, rx_buf->tail, USB_CDC_BUF_SIZE) > (USB_CDC_BUF_SIZE>>1)) && cdc_state->rts_active;
int rts_active = ((circ_buf_space(rx_buf->head, rx_buf->tail, USB_CDC_BUF_SIZE) > (USB_CDC_BUF_SIZE>>1))) && cdc_state->rts_active;
gpio_pin_set(rts_pin, rts_active);
}
}
Expand Down

0 comments on commit 4f9b372

Please sign in to comment.