From 050a5f465a8ad0a96fb3864ba21a32f05cb1b6d6 Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 29 Aug 2018 15:07:33 +0700 Subject: [PATCH] DTR = false is counted as disconnected for touch1200 --- cores/nRF5/usb/usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cores/nRF5/usb/usb.c b/cores/nRF5/usb/usb.c index 735e2842..da21ed99 100644 --- a/cores/nRF5/usb/usb.c +++ b/cores/nRF5/usb/usb.c @@ -118,8 +118,8 @@ void tud_cdc_line_state_cb(uint8_t itf, bool dtr, bool rts) { (void) itf; // interface ID, not used - // disconnected event - if ( !dtr && !rts ) + // DTR = false is counted as disconnected event for touch1200 + if ( !dtr ) { cdc_line_coding_t coding; tud_cdc_get_line_coding(&coding);