File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
java-package/brainflow/src/main/java/brainflow Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -14,29 +14,29 @@ public enum BoardIds {
14
14
CYTON_WIFI_BOARD (5 ),
15
15
CYTON_DAISY_WIFI_BOARD (6 );
16
16
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 >();
19
19
20
20
public int get_code () {
21
- return exit_code ;
21
+ return board_id ;
22
22
}
23
23
24
24
public static String string_from_code (final int code ) {
25
25
return from_code (code ).name ();
26
26
}
27
27
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 );
30
30
return element ;
31
31
}
32
32
33
33
BoardIds (final int code ) {
34
- exit_code = code ;
34
+ board_id = code ;
35
35
}
36
36
37
37
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 );
40
40
}
41
41
}
42
42
}
You can’t perform that action at this time.
0 commit comments