Skip to content

Commit

Permalink
[nanokit] Don't assert nRESET line in case of CDC-ACM break
Browse files Browse the repository at this point in the history
This prevents CSK6 being reset once console is closed
  • Loading branch information
xychen committed Sep 2, 2024
1 parent 474fbcc commit 3f78131
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/daplink/usb2uart/usbd_user_cdc_acm.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ int32_t USBD_CDC_ACM_PortGetLineCoding(CDC_LINE_CODING *line_coding)
static U32 start_break_time = 0;
int32_t USBD_CDC_ACM_SendBreak(uint16_t dur)
{
#ifndef LISTENAI_NANOKIT
uint32_t end_break_time;
#ifdef DRAG_N_DROP_SUPPORT
if (!flash_intf_target->flash_busy())
Expand All @@ -134,6 +135,7 @@ int32_t USBD_CDC_ACM_SendBreak(uint16_t dur)
}
}
}
#endif /* LISTENAI_NANOKIT */
return (1);
}

Expand Down

0 comments on commit 3f78131

Please sign in to comment.