jputcu/serialport — Issue #7: Add support for com ports >COM9 on windows
Author: metametaclass
Created: 2011-10-29 10:14:24+00:00
State: open

To open com ports with names greater than 9 on windows, port name should be passed to CreateFile in form:
\\.\COMn

openSerial dev settings = do
- h <- createFile dev access_mode share_mode security_attr create_mode file_attr template_file
+ h <- createFile ("\\\\.\\"++dev) access_mode share_mode security_attr create_mode file_attr template_file