Skip to content

Commit

Permalink
Make sure DTR asserted on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Apr 1, 2016
1 parent 5225e32 commit 89f76f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Expand Up @@ -24,6 +24,7 @@ CXXFLAGS = $(CFLAGS) `$(WXCONFIG) --cppflags`
WXCONFIG = ~/wxwidgets/3.0.2.mac-opengl/bin/wx-config
SFLAG = -s
CLILIBS = -lglut -lGLU -lGL -lm
VERSION = 0.01

else ifeq ($(OS), MACOSX_CLANG)
ALL = gui.app
Expand All @@ -34,6 +35,7 @@ WXCONFIG = wx-config
CXXFLAGS = $(CFLAGS) `$(WXCONFIG) --cppflags`
SFLAG =
CLILIBS = -lglut -lGLU -lGL -lm
VERSION = 0.01

else ifeq ($(OS), WINDOWS)
ALL = gui.exe
Expand All @@ -45,7 +47,7 @@ LDFLAGS = -static -static-libgcc
SFLAG = -s
WXCONFIG = ~/wxwidgets/3.0.2.mingw-opengl/bin/wx-config
CLILIBS = -lglut32 -lglu32 -lopengl32 -lm
VERSION = 0.01
MAKEFLAGS = --jobs=12

endif

Expand Down
4 changes: 4 additions & 0 deletions serialdata.c
Expand Up @@ -527,6 +527,10 @@ int open_port(const char *name)
CloseHandle(port_handle);
return 0;
}
if (!EscapeCommFunction(port_handle, SETDTR)) {
CloseHandle(port_handle);
return 0;
}
return 1;
}

Expand Down

0 comments on commit 89f76f9

Please sign in to comment.