Skip to content

Commit 182a73f

Browse files
committed
Merge remote-tracking branch 'openbci/master'
2 parents 95ee0b6 + b86c8bf commit 182a73f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

java-package/brainflow/src/main/java/brainflow/BoardIds.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,29 @@ public enum BoardIds {
1414
CYTON_WIFI_BOARD (5),
1515
CYTON_DAISY_WIFI_BOARD (6);
1616

17-
private final int exit_code;
18-
private static final Map<Integer, ExitCode> ec_map = new HashMap<Integer, ExitCode>();
17+
private final int board_id;
18+
private static final Map<Integer, BoardIds> bi_map = new HashMap<Integer, BoardIds>();
1919

2020
public int get_code () {
21-
return exit_code;
21+
return board_id;
2222
}
2323

2424
public static String string_from_code (final int code) {
2525
return from_code (code).name ();
2626
}
2727

28-
public static ExitCode from_code (final int code) {
29-
final ExitCode element = ec_map.get (code);
28+
public static BoardIds from_code (final int code) {
29+
final BoardIds element = bi_map.get (code);
3030
return element;
3131
}
3232

3333
BoardIds(final int code) {
34-
exit_code = code;
34+
board_id = code;
3535
}
3636

3737
static {
38-
for (final ExitCode ec : ExitCode.values ()) {
39-
ec_map.put(ec.get_code(), ec);
38+
for (final BoardIds bi : BoardIds.values ()) {
39+
bi_map.put(bi.get_code(), bi);
4040
}
4141
}
4242
}

0 commit comments

Comments
 (0)