Skip to content

Commit

Permalink
Update usingGanglionV3andMacOS to false by default
Browse files Browse the repository at this point in the history
  • Loading branch information
retiutut committed Sep 20, 2023
1 parent ff2da71 commit eff0ad2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions OpenBCI_GUI/ControlPanel.pde
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,12 @@ class BLEBox {
private void createV2FirmwareButton(String name, String text, int _x, int _y, int _w, int _h) {
v2FirmwareButton = createButton(bleBox_cp5, name, text, _x, _y, _w, _h);
v2FirmwareButton.setSwitch(true);
v2FirmwareButton.setOff();
if (usingGanglionV3andMacOS) {
v2FirmwareButton.setOff();
} else {
v2FirmwareButton.setOn();
}
v2FirmwareButton.setOn();
v2FirmwareButton.onRelease(new CallbackListener() {
public void controlEvent(CallbackEvent theEvent) {
v3FirmwareButton.setOff();
Expand All @@ -868,7 +873,11 @@ class BLEBox {
private void createV3FirmwareButton(String name, String text, int _x, int _y, int _w, int _h) {
v3FirmwareButton = createButton(bleBox_cp5, name, text, _x, _y, _w, _h);
v3FirmwareButton.setSwitch(true);
v3FirmwareButton.setOn();
if (usingGanglionV3andMacOS) {
v3FirmwareButton.setOn();
} else {
v3FirmwareButton.setOff();
}
v3FirmwareButton.onRelease(new CallbackListener() {
public void controlEvent(CallbackEvent theEvent) {
v2FirmwareButton.setOff();
Expand Down
2 changes: 1 addition & 1 deletion OpenBCI_GUI/OpenBCI_GUI.pde
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ boolean isFFTFiltered = true; //yes by default ... this is used in dataProcessin
StringBuilder globalScreenResolution;
StringBuilder globalScreenDPI;

boolean usingGanglionV3andMacOS = true;
boolean usingGanglionV3andMacOS = false;

//------------------------------------------------------------------------
// Global Functions
Expand Down

0 comments on commit eff0ad2

Please sign in to comment.