Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fix/USBSerial-breaks-if-host-doe…
Browse files Browse the repository at this point in the history
…snt-assert-DTR' into edge
  • Loading branch information
adamgreen committed Feb 21, 2013
2 parents eb97f20 + 8922c19 commit c4f2f9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libs/USBDevice/USBSerial/USBSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ void USBSerial::on_module_loaded()

void USBSerial::on_main_loop(void *argument)
{
// apparently some OSes don't assert DTR when a program opens the port
if (available() && !attach)
attach = true;

if (attach != attached)
{
if (attach)
Expand Down

0 comments on commit c4f2f9c

Please sign in to comment.