From 2573b72a7fd7977d031de8e11d9b6ff6f3415e4c Mon Sep 17 00:00:00 2001 From: biliouriv Date: Tue, 28 Jun 2022 15:49:02 +0200 Subject: [PATCH 1/2] [Fix] Reflash a 2nd gate with bootloader --- pyluos/tools/bootloader.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) 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']) From 05d6c4e079220f47518e87f3ad3f61e4b8b81015 Mon Sep 17 00:00:00 2001 From: JeromeGalan Date: Mon, 4 Jul 2022 17:11:23 +0200 Subject: [PATCH 2/2] Update pyluos version --- pyluos/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'