Skip to content
Snippets Groups Projects
Commit b2c01315 authored by Reinier van der Walle's avatar Reinier van der Walle
Browse files

added brackets to check fn_ bn_

parent 14386f52
No related branches found
No related tags found
No related merge requests found
...@@ -367,11 +367,11 @@ class Commands: ...@@ -367,11 +367,11 @@ class Commands:
# check rbf file name for 'bn_'/'fn_' # check rbf file name for 'bn_'/'fn_'
def check_rbf(self, rbf_path): def check_rbf(self, rbf_path):
rbf_name = rbf_path.split('/')[-1] rbf_name = rbf_path.split('/')[-1]
if ('bn_' in rbf_name) and not (self.fn_nrs.get == ''): if ('bn_' in rbf_name) and not (self.fn_nrs.get() == ''):
tkMessageBox.showwarning("Warning","You can't flash front nodes with a rbf for backnodes") tkMessageBox.showwarning("Warning","You can't flash front nodes with a rbf for backnodes")
return False return False
elif ('fn_' in rbf_name) and not (self.bn_nrs.get == ''): elif ('fn_' in rbf_name) and not (self.bn_nrs.get() == ''):
tkMessageBox.showwarning("Warning","You can't flash back nodes with a rbf for frontnodes") tkMessageBox.showwarning("Warning","You can't flash back nodes with a rbf for frontnodes")
return False return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment