File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 93
93
import cc .arduino .view .findreplace .FindReplace ;
94
94
import jssc .SerialPortException ;
95
95
import processing .app .debug .RunnerException ;
96
+ import processing .app .debug .TargetBoard ;
96
97
import processing .app .forms .PasswordAuthorizationDialog ;
97
98
import processing .app .helpers .DocumentTextChangeListener ;
98
99
import processing .app .helpers .Keys ;
@@ -2580,9 +2581,9 @@ private void statusEmpty() {
2580
2581
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2581
2582
2582
2583
protected void onBoardOrPortChange () {
2583
- Map < String , String > boardPreferences = BaseNoGui .getBoardPreferences ();
2584
- if (boardPreferences != null )
2585
- lineStatus .setBoardName (boardPreferences . get ( "name" ));
2584
+ TargetBoard board = BaseNoGui .getTargetBoard ();
2585
+ if (board != null )
2586
+ lineStatus .setBoardName (board . getName ( ));
2586
2587
else
2587
2588
lineStatus .setBoardName ("-" );
2588
2589
lineStatus .setPort (PreferencesData .get ("serial.port" ));
You can’t perform that action at this time.
0 commit comments