File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
io.sloeber.tests/src/io/sloeber/core Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import static org .junit .Assert .*;
4
4
5
+ import io .sloeber .core .common .Common ;
5
6
import io .sloeber .providers .Arduino ;
6
7
import io .sloeber .providers .ESP8266 ;
7
8
import io .sloeber .providers .MCUBoard ;
@@ -16,7 +17,16 @@ public class MySystem {
16
17
private static final String jantjesWindowsMachine = "1248215851" ;
17
18
//the one below is based on one mac address Fysiek adres (MAC): C0-3F-D5-66-04-58
18
19
private static final String jantjesLinuxMachine = "88937904" ;
19
- private static final String currentMachine = jantjesWindowsMachine ;
20
+ private static final String currentMachine = getMachine ();
21
+
22
+ private static String getMachine () {
23
+ if (Common .isWindows ) {
24
+ if ("jan" .equals (System .getProperty ("user.name" ))) {
25
+ return jantjesWindowsMachine ;
26
+ }
27
+ }
28
+ return new String ();
29
+ }
20
30
21
31
public static String getTeensyPlatform () {
22
32
switch (currentMachine ) {
You can’t perform that action at this time.
0 commit comments