Skip to content

Commit 9afa0e7

Browse files
committed
Merge pull request #393 from zabereer/master
Better parsing of boards.txt file, thanks for the PR and good spotting!
2 parents 02a1811 + fb2567e commit 9afa0e7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Arduino.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ endif
568568

569569
ifndef PARSE_BOARD
570570
# result = $(call READ_BOARD_TXT, 'boardname', 'parameter')
571-
PARSE_BOARD = $(shell grep -v '^\#' $(BOARDS_TXT) | grep $(1).$(2)= | cut -d = -f 2 )
571+
PARSE_BOARD = $(shell grep -v '^\#' $(BOARDS_TXT) | grep "^[ \t]*$(1).$(2)=" | cut -d = -f 2)
572572
endif
573573

574574
# If NO_CORE is set, then we don't have to parse boards.txt file

HISTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ I tried to give credit whenever possible. If I have missed anyone, kindly add it
1111
- New: Add option to split avrdude MCU from avr-gcc MCU (Issue #357) (https://github.com/hhgarnes)
1212
- New: Add support for /dev/tty.wchusbserial* (comes with cheap clones - DCCduino) (https://github.com/biesiad)
1313
- New: Add support for picocom as serial monitor (https://github.com/biesiad)
14+
- Tweak: Add support for Adafruit trinket3/trinket5/protrinket3/protrinket5 by improved BOARDS_TXT parsing (Issue #393) (https://github/com/zabereer)
1415
- Tweak: Looks for submenu items first when parsing BOARDS_TXT (Issue #347) (https://github.com/sej7278)
1516
- Tweak: Various spelling/grammar/typo fixes (https://github.com/dcousens)
1617
- Tweak: Clarified some 1.5+ issues in docs (Issue #352) (https://github.com/sej7278)

0 commit comments

Comments
 (0)