We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a3ce26 commit 1d2f6feCopy full SHA for 1d2f6fe
BlocklyServer.py
@@ -42,7 +42,14 @@ def index(self):
42
def ports(self):
43
cherrypy.response.headers['Access-Control-Allow-Origin'] = '*'
44
self.queue.put((3, 'DEBUG', 'Port list retrieved'))
45
- return self.propellerLoad.get_ports()
+
46
+ ports = self.propellerLoad.get_ports()
47
+ filtered_ports = []
48
+ for port in ports:
49
+ if ' bt ' not in port.lower() and 'bluetooth' not in port.lower():
50
+ filtered_ports.append(port)
51
+ return filtered_ports
52
53
54
55
@cherrypy.expose(alias='compile.action')
@@ -101,4 +108,4 @@ def stop(queue):
101
108
queue.put((10, 'INFO', 'Server disconnected'))
102
109
103
110
if __name__ == '__main__':
104
- main(PORT, VERSION, None)
111
+ main(PORT, VERSION, None)
0 commit comments