예제 #1
0
def _get_boards(installed=False):
    boards = PlatformManager().get_installed_boards()
    if not installed:
        know_boards = ["%s:%s" % (b['platform'], b['id']) for b in boards]
        for board in PlatformManager().get_registered_boards():
            key = "%s:%s" % (board['platform'], board['id'])
            if key not in know_boards:
                boards.append(board)
    return boards
예제 #2
0
def _get_boards(installed=False):
    boards = PlatformManager().get_installed_boards()
    if not installed:
        know_boards = ["%s:%s" % (b['platform'], b['id']) for b in boards]
        try:
            for board in PlatformManager().get_registered_boards():
                key = "%s:%s" % (board['platform'], board['id'])
                if key not in know_boards:
                    boards.append(board)
        except InternetIsOffline:
            pass
    return boards
예제 #3
0
def _get_boards(installed=False):
    boards = PlatformManager().get_installed_boards()
    if not installed:
        know_boards = ["%s:%s" % (b['platform'], b['id']) for b in boards]
        try:
            for board in PlatformManager().get_registered_boards():
                key = "%s:%s" % (board['platform'], board['id'])
                if key not in know_boards:
                    boards.append(board)
        except InternetIsOffline:
            pass
    return sorted(boards, key=lambda b: b['name'])