Revert "Add Linux support to tmc example"

This reverts commit dc2f00cca1.
This commit is contained in:
Jeremiah McCarthy 2021-03-17 14:24:14 -04:00
parent ec08dcf61a
commit 161b8587bd
1 changed files with 15 additions and 23 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python3
import pyvisa as visa
import visa
import time
import sys
@ -142,16 +142,8 @@ def test_stall_ep0():
assert (inst.read_stb() == 0)
os = sys.platform
if os == "linux" or os == "linux2":
rm = visa.ResourceManager("@py")
elif os == "darwin":
## Not tested
print("Mac not tested\n");
sys.exit()
elif os == "win32":
rm = visa.ResourceManager("/c/Windows/system32/visa64.dll")
rm = visa.ResourceManager("/c/Windows/system32/visa64.dll")
reslist = rm.list_resources("USB?::?*::INSTR")
print(reslist)