File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 9393import cc .arduino .view .findreplace .FindReplace ;
9494import jssc .SerialPortException ;
9595import processing .app .debug .RunnerException ;
96+ import processing .app .debug .TargetBoard ;
9697import processing .app .forms .PasswordAuthorizationDialog ;
9798import processing .app .helpers .DocumentTextChangeListener ;
9899import processing .app .helpers .Keys ;
@@ -2580,9 +2581,9 @@ private void statusEmpty() {
25802581 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
25812582
25822583 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 ( ));
25862587 else
25872588 lineStatus .setBoardName ("-" );
25882589 lineStatus .setPort (PreferencesData .get ("serial.port" ));
You can’t perform that action at this time.
0 commit comments