aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2016-05-18 08:51:50 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2016-05-18 08:51:50 +0900
commit4c1aa50f13ca6dc08be0bb243f3c885b661b0fa8 (patch)
tree66d06f2eda97c3666d772b6d3726cfb979542c84
parentcf76b0bf13caa32eab68589cb81826d558ff05a2 (diff)
Fix example-cdc
-rw-r--r--example-cdc/usb-cdc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/example-cdc/usb-cdc.c b/example-cdc/usb-cdc.c
index f2cf26f..c095482 100644
--- a/example-cdc/usb-cdc.c
+++ b/example-cdc/usb-cdc.c
@@ -380,8 +380,6 @@ usb_cb_handle_event (uint8_t event_type, uint16_t value)
}
/* Do nothing when current_conf == value */
return USB_SUCCESS;
-
- return USB_SUCCESS;
default:
break;
}
@@ -581,6 +579,7 @@ struct tty *
tty_open (void)
{
chopstx_mutex_init (&tty.mtx);
+ chopstx_cond_init (&tty.cnd);
tty.inputline_len = 0;
tty.send_head = tty.send_tail = 0;
tty.flag_connected = 0;