Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
IonutMuthi committed Jul 10, 2024
1 parent c4385a1 commit aea3cd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions JS/scopyDefaultTests.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//This import paht is relative to where scopy is build
importFileContent("../JS/scpyDefaultJsFunctions.js")

function connectionTest(){
printToConsole("TEST CONNECTION")
connect()
Expand Down
3 changes: 2 additions & 1 deletion JS/scpyDefaultJsFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ function connect(){
var deviceID = scopy.addDevice("", "ip:127.0.0.0")
//CONNECT TO DEVICE
scopy.connectDevice(deviceID)
msleep(1000)
}

function disconnect(){
//DISCONNECT FROM DEVICE
scopy.disconnectDevice()
exit(0)
}
}

0 comments on commit aea3cd0

Please sign in to comment.