Skip to content

Commit f814073

Browse files
author
AJ Keller
authoredJan 20, 2017
Merge pull request OpenBCI#115 from OpenBCI/staging
Staging
2 parents 0ca326c + 9901d7e commit f814073

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed
 

‎CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# 2.1.0
2+
3+
### Breaking Changes
4+
* Removed space in GanglionHub to be able to kill the hub on windows.
5+
6+
# 2.0.0
7+
8+
* Initial Release

‎OpenBCI_GUI/OpenBCI_GUI.pde

+7-7
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ int colorScheme = COLOR_SCHEME_ALTERNATIVE_A;
240240

241241
Process nodeHubby;
242242
int hubPid = 0;
243-
String nodeHubName = "Ganglion Hub";
243+
String nodeHubName = "GanglionHub";
244244
Robot rob3115;
245245

246246
//-----------------------------------------1-------------------------------
@@ -255,7 +255,7 @@ void setup() {
255255
// server on shut down of this app, the main process.
256256
// prepareExitHandler();
257257
if (dev == false) {
258-
hubStop(); //kill any existing hubs before starting a new one..
258+
if (!isWindows()) hubStop(); //kill any existing hubs before starting a new one..
259259
hubStart();
260260
prepareExitHandler();
261261
}
@@ -400,13 +400,13 @@ void hubStart() {
400400
// https://forum.processing.org/two/discussion/13053/use-launch-for-applications-kept-in-data-folder
401401
if (isWindows()) {
402402
println("OpenBCI_GUI: hubStart: OS Detected: Windows");
403-
nodeHubby = launch(dataPath("Ganglion Hub.exe"));
403+
nodeHubby = launch(dataPath("GanglionHub.exe"));
404404
} else if (isLinux()) {
405405
println("OpenBCI_GUI: hubStart: OS Detected: Linux");
406-
nodeHubby = exec(dataPath("Ganglion Hub"));
406+
nodeHubby = exec(dataPath("GanglionHub"));
407407
} else {
408408
println("OpenBCI_GUI: hubStart: OS Detected: Mac");
409-
nodeHubby = launch(dataPath("Ganglion Hub.app"));
409+
nodeHubby = launch(dataPath("GanglionHub.app"));
410410
}
411411
// hubRunning = true;
412412
}
@@ -478,7 +478,7 @@ void killRunningProcessMac() {
478478
*/
479479
boolean killRunningprocessWin() {
480480
try {
481-
Runtime.getRuntime().exec("taskkill /F /IM Ganglion Hub.exe");
481+
Runtime.getRuntime().exec("taskkill /F /IM GanglionHub.exe");
482482
return true;
483483
}
484484
catch (Exception err) {
@@ -966,7 +966,7 @@ void introAnimation() {
966966
textLeading(24);
967967
fill(31, 69, 110, transparency);
968968
textAlign(CENTER, CENTER);
969-
text("OpenBCI GUI v2.0.0\nJanuary 2017", width/2, height/2 + width/9);
969+
text("OpenBCI GUI v2.1.0\nJanuary 2017", width/2, height/2 + width/9);
970970
}
971971

972972
//exit intro animation at t2

0 commit comments

Comments
 (0)
Please sign in to comment.