Skip to content

Commit 7e6fb8b

Browse files
committed
Update options name which have been shorten in the core
See stm32duino/Arduino_Core_STM32#109 Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 089b639 commit 7e6fb8b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: STM32/src/dopackage.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,10 @@ updateJsonBoardName()
250250
local tmp=$IFS
251251
local lb=`grep -E ".+\.menu\.board_part_num\.[^\.]+=" $1/boards.txt | cut -d'=' -f2`
252252
if [ "$lb" == "" ]; then
253-
lb=`grep "\.name" $1/boards.txt | cut -d'=' -f2`
253+
lb=`grep -E ".+\.menu\.pnum\.[^\.]+=" $1/boards.txt | cut -d'=' -f2`
254+
if [ "$lb" == "" ]; then
255+
lb=`grep "\.name" $1/boards.txt | cut -d'=' -f2`
256+
fi
254257
fi
255258

256259
IFS=$'\n'

0 commit comments

Comments
 (0)