Skip to content

Commit e70c7e4

Browse files
committed
Change MENU_ID to match Arduino AVR Boards
There is a bug(arduino/Arduino#5260) in the Arduino IDE that causes the menu item text to not update from the previously selected board if the menu title text is the same but the MENU_ID is different. Arduino AVR Boards defines menu.cpu=Processor so I must do the same to reduce the chances of a user encountering this issue. Note that this issue still may be caused by other boards packages.
1 parent 78dc20d commit e70c7e4

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

avr/boards.txt

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ menu.clock_bod=Clock/BOD
66
menu.SDCS=SD CS Pin
77
menu.BOD=BOD
88
menu.pinout=Pinout
9-
menu.processor=Processor
9+
menu.cpu=Processor
1010

1111
##############################################################
1212

@@ -25,11 +25,11 @@ avr_boot_atmega328.build.core=arduino:arduino
2525
avr_boot_atmega328.build.board=AVR_ATMEGA328P
2626

2727
# Processor Menu
28-
avr_boot_atmega328.menu.processor.atmega328p=ATmega328P
29-
avr_boot_atmega328.menu.processor.atmega328p.build.mcu=atmega328p
28+
avr_boot_atmega328.menu.cpu.atmega328p=ATmega328P
29+
avr_boot_atmega328.menu.cpu.atmega328p.build.mcu=atmega328p
3030

31-
avr_boot_atmega328.menu.processor.atmega328=ATmega328
32-
avr_boot_atmega328.menu.processor.atmega328.build.mcu=atmega328
31+
avr_boot_atmega328.menu.cpu.atmega328=ATmega328
32+
avr_boot_atmega328.menu.cpu.atmega328.build.mcu=atmega328
3333

3434
# Model Menu
3535
avr_boot_atmega328.menu.model.uno=Uno
@@ -331,11 +331,11 @@ avr_boot_atmega1284.build.core=arduino:arduino
331331
avr_boot_atmega1284.build.board=AVR_ATMEGA1284
332332

333333
# Processor Menu
334-
avr_boot_atmega1284.menu.processor.atmega1284p=ATmega1284P
335-
avr_boot_atmega1284.menu.processor.atmega1284p.build.mcu=atmega1284p
334+
avr_boot_atmega1284.menu.cpu.atmega1284p=ATmega1284P
335+
avr_boot_atmega1284.menu.cpu.atmega1284p.build.mcu=atmega1284p
336336

337-
avr_boot_atmega1284.menu.processor.atmega1284=ATmega1284
338-
avr_boot_atmega1284.menu.processor.atmega1284.build.mcu=atmega1284
337+
avr_boot_atmega1284.menu.cpu.atmega1284=ATmega1284
338+
avr_boot_atmega1284.menu.cpu.atmega1284.build.mcu=atmega1284
339339

340340
# Pinout Menu
341341
avr_boot_atmega1284.menu.pinout.avrdevelopers=avr-developers.com
@@ -438,17 +438,17 @@ avr_boot_atmega644.build.core=arduino:arduino
438438
avr_boot_atmega644.build.board=AVR_ATMEGA644
439439

440440
# Processor Menu
441-
avr_boot_atmega644.menu.processor.atmega644=ATmega644
442-
avr_boot_atmega644.menu.processor.atmega644.build.mcu=atmega644
441+
avr_boot_atmega644.menu.cpu.atmega644=ATmega644
442+
avr_boot_atmega644.menu.cpu.atmega644.build.mcu=atmega644
443443

444-
avr_boot_atmega644.menu.processor.atmega644p=ATmega644P
445-
avr_boot_atmega644.menu.processor.atmega644p.build.mcu=atmega644p
444+
avr_boot_atmega644.menu.cpu.atmega644p=ATmega644P
445+
avr_boot_atmega644.menu.cpu.atmega644p.build.mcu=atmega644p
446446

447-
avr_boot_atmega644.menu.processor.atmega644a=ATmega644A
448-
avr_boot_atmega644.menu.processor.atmega644a.build.mcu=atmega644a
447+
avr_boot_atmega644.menu.cpu.atmega644a=ATmega644A
448+
avr_boot_atmega644.menu.cpu.atmega644a.build.mcu=atmega644a
449449

450-
avr_boot_atmega644.menu.processor.atmega644pa=ATmega644PA
451-
avr_boot_atmega644.menu.processor.atmega644pa.build.mcu=atmega644pa
450+
avr_boot_atmega644.menu.cpu.atmega644pa=ATmega644PA
451+
avr_boot_atmega644.menu.cpu.atmega644pa.build.mcu=atmega644pa
452452

453453
# Pinout Menu
454454
avr_boot_atmega644.menu.pinout.avrdevelopers=avr-developers.com
@@ -551,14 +551,14 @@ avr_boot_atmega324.build.core=arduino:arduino
551551
avr_boot_atmega324.build.board=AVR_ATMEGA324
552552

553553
# Processor Menu
554-
avr_boot_atmega324.menu.processor.atmega324p=ATmega324P
555-
avr_boot_atmega324.menu.processor.atmega324p.build.mcu=atmega324p
554+
avr_boot_atmega324.menu.cpu.atmega324p=ATmega324P
555+
avr_boot_atmega324.menu.cpu.atmega324p.build.mcu=atmega324p
556556

557-
avr_boot_atmega324.menu.processor.atmega324a=ATmega324A
558-
avr_boot_atmega324.menu.processor.atmega324a.build.mcu=atmega324a
557+
avr_boot_atmega324.menu.cpu.atmega324a=ATmega324A
558+
avr_boot_atmega324.menu.cpu.atmega324a.build.mcu=atmega324a
559559

560-
avr_boot_atmega324.menu.processor.atmega324pa=ATmega324PA
561-
avr_boot_atmega324.menu.processor.atmega324pa.build.mcu=atmega324pa
560+
avr_boot_atmega324.menu.cpu.atmega324pa=ATmega324PA
561+
avr_boot_atmega324.menu.cpu.atmega324pa.build.mcu=atmega324pa
562562

563563
# Pinout Menu
564564
avr_boot_atmega324.menu.pinout.avrdevelopers=avr-developers.com
@@ -659,11 +659,11 @@ avr_boot_atmega32.build.core=arduino:arduino
659659
avr_boot_atmega32.build.board=AVR_ATMEGA32
660660

661661
# Processor Menu
662-
avr_boot_atmega32.menu.processor.atmega32=ATmega32
663-
avr_boot_atmega32.menu.processor.atmega32.build.mcu=atmega32
662+
avr_boot_atmega32.menu.cpu.atmega32=ATmega32
663+
avr_boot_atmega32.menu.cpu.atmega32.build.mcu=atmega32
664664

665-
avr_boot_atmega32.menu.processor.atmega32a=ATmega32A
666-
avr_boot_atmega32.menu.processor.atmega32a.build.mcu=atmega32a
665+
avr_boot_atmega32.menu.cpu.atmega32a=ATmega32A
666+
avr_boot_atmega32.menu.cpu.atmega32a.build.mcu=atmega32a
667667

668668
# Pinout Menu
669669
avr_boot_atmega32.menu.pinout.avrdevelopers=avr-developers.com
@@ -804,11 +804,11 @@ avr_boot_atmega128.build.variant=megacore-standard
804804
avr_boot_atmega128.build.board=AVR_ATMEGA128
805805

806806
# Processor Menu
807-
avr_boot_atmega128.menu.processor.atmega128=ATmega128
808-
avr_boot_atmega128.menu.processor.atmega128.build.mcu=atmega128
807+
avr_boot_atmega128.menu.cpu.atmega128=ATmega128
808+
avr_boot_atmega128.menu.cpu.atmega128.build.mcu=atmega128
809809

810-
avr_boot_atmega128.menu.processor.atmega128a=ATmega128A
811-
avr_boot_atmega128.menu.processor.atmega128a.build.mcu=atmega128a
810+
avr_boot_atmega128.menu.cpu.atmega128a=ATmega128A
811+
avr_boot_atmega128.menu.cpu.atmega128a.build.mcu=atmega128a
812812

813813
# Clock/BOD Menu
814814
avr_boot_atmega128.menu.clock_bod.16mhz_full_swing_bod27=16MHz External Full Swing, 2.7V BOD
@@ -913,11 +913,11 @@ avr_boot_atmega64.build.variant=megacore-standard
913913
avr_boot_atmega64.build.board=AVR_ATMEGA64
914914

915915
# Processor Menu
916-
avr_boot_atmega64.menu.processor.atmega64=ATmega64
917-
avr_boot_atmega64.menu.processor.atmega64.build.mcu=atmega64
916+
avr_boot_atmega64.menu.cpu.atmega64=ATmega64
917+
avr_boot_atmega64.menu.cpu.atmega64.build.mcu=atmega64
918918

919-
avr_boot_atmega64.menu.processor.atmega64a=ATmega64A
920-
avr_boot_atmega64.menu.processor.atmega64a.build.mcu=atmega64a
919+
avr_boot_atmega64.menu.cpu.atmega64a=ATmega64A
920+
avr_boot_atmega64.menu.cpu.atmega64a.build.mcu=atmega64a
921921

922922
# Clock/BOD Menu
923923
avr_boot_atmega64.menu.clock_bod.16mhz_full_swing_bod27=16MHz External Full Swing, 2.7V BOD

0 commit comments

Comments
 (0)