1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

boards.txt: sort by displayed name (#7670)

* boards.txt: sort by displayed name

* reduce diff

* use boardlist instead of boards
This commit is contained in:
david gauchard
2020-10-24 20:39:37 +02:00
committed by GitHub
parent 95fb104562
commit 64def3cd8d
4 changed files with 4245 additions and 4243 deletions

View File

@ -635,7 +635,7 @@ boards = collections.OrderedDict([
],
}),
( 'd1', {
'name': 'WeMos D1 R1',
'name': 'LOLIN(WeMos) D1 R1',
'opts': {
'.build.board': 'ESP8266_WEMOS_D1R1',
'.build.variant': 'd1',
@ -1564,7 +1564,9 @@ def all_boards ():
print('')
missingboards = []
for id in boardlist:
boardlistsortedbydisplayedname = [ k for k in sorted(boardlist, key = lambda item: boards[item]['name']) ]
sortedrequiredfirst = requiredboards + [ item for item in boardlistsortedbydisplayedname if item not in requiredboards ]
for id in sortedrequiredfirst:
if id not in boards:
missingboards += [ id ];
continue