Skip to content

Commit edcaa85

Browse files
author
Albert Pretorius
committed
Better parsing of boards.txt file which allows Adafruit Trinket to be used
1 parent 02a1811 commit edcaa85

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
@@ -6,6 +6,7 @@ I tried to give credit whenever possible. If I have missed anyone, kindly add it
66

77
### In Development
88

9+
- Tweak: Add support for Adafruit trinket3/trinket5/protrinket3/protrinket5 by improved BOARDS_TXT parsing
910
- New: Add AVR Dragon to list of ISP's without a port (https://github.com/mtnocean)
1011
- New: Add more board examples to Blink demo (https://github.com/sej7278)
1112
- New: Add option to split avrdude MCU from avr-gcc MCU (Issue #357) (https://github.com/hhgarnes)

0 commit comments

Comments
 (0)