diff --git a/pyluos/tools/bootloader.py b/pyluos/tools/bootloader.py index 5c57932..76074dc 100644 --- a/pyluos/tools/bootloader.py +++ b/pyluos/tools/bootloader.py @@ -91,15 +91,10 @@ def create_target_list(args, state): nodes_to_program = [] nodes_to_reboot = [] for node in state['routing_table']: - # bypass if node contains a Gate service - # prevent programmation of a Gate - for service in node['services']: - bypass_node = False - if(service['type'] == 'Gate'): - bypass_node = True - break - if(service['alias'] == 'Pipe_mod'): - bypass_node = True + # prevent programmation of node 1 + bypass_node = False + if(node['node_id'] == 1): + bypass_node = True # check if node is in target list if not (bypass_node): nodes_to_reboot.append(node['node_id']) diff --git a/pyluos/version.py b/pyluos/version.py index 6c3c2c9..aa7a7ae 100644 --- a/pyluos/version.py +++ b/pyluos/version.py @@ -1 +1 @@ -version = '2.2.1' +version = '2.2.2'