DTR = false is counted as disconnected for touch1200

This commit is contained in:
hathach committed 2018-08-29 15:07:33 +07:00
1 parent 1277d79657
commit 050a5f465a
1 file changed
+2 -2
+2 -2
View File
@@ -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);