From 3d9b2f6a0e709152b13da4a16473900e1e97d99a Mon Sep 17 00:00:00 2001 From: Foad Sojoodi Farimani Date: Sun, 3 Mar 2019 11:27:01 +0100 Subject: [PATCH] to accept com ports higher than 9 `\\\\.\\com*` to accept com ports higher than 9. the `com*:` is legacy. --- macros/openserial.sci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/openserial.sci b/macros/openserial.sci index 8235337..b1f1495 100644 --- a/macros/openserial.sci +++ b/macros/openserial.sci @@ -4,7 +4,7 @@ function h=openserial(p,smode,translation,handshake,xchar,timeout) if type(p)==1 | type(p)==8 then if p<=0 then error("port number must be greater than zero"); end if getos() == "Windows" then - port="COM"+string(p)+":" + port = "\\\\.\\com" + string(p) else port="/dev/ttyS"+string(p-1) end