Skip to content

Commit

Permalink
Merge pull request #144 from Luos-io/fix/gate_bootloader
Browse files Browse the repository at this point in the history
Pyluos release 2.2.2
  • Loading branch information
JeromeGalan authored Jul 4, 2022
2 parents ff90e12 + 05d6c4e commit 629fb2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
13 changes: 4 additions & 9 deletions pyluos/tools/bootloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down
2 changes: 1 addition & 1 deletion pyluos/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '2.2.1'
version = '2.2.2'

0 comments on commit 629fb2d

Please sign in to comment.