File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -103,17 +103,21 @@ def main():
103
103
def get_interface_version (mount_point ):
104
104
""" Function returns interface version from the target mounted on the specified mount point
105
105
106
- mount_point can be acquired via the following:
107
- muts = get_autodetected_MUTS_list()
108
- for mut in muts.values():
109
- mount_point = mut['disk']
106
+ mount_point can be acquired via the following:
107
+ muts = get_autodetected_MUTS_list()
108
+ for mut in muts.values():
109
+ mount_point = mut['disk']
110
110
111
111
@param mount_point Name of disk where platform is connected to host machine.
112
112
"""
113
113
if get_module_avail ('mbed_lstools' ):
114
114
mbeds = mbed_lstools .create ()
115
115
details_txt = mbeds .get_details_txt (mount_point )
116
116
117
+ if (details_txt is None ):
118
+ details_txt = {}
119
+
120
+
117
121
if 'Interface Version' in details_txt :
118
122
return details_txt ['Interface Version' ]
119
123
You can’t perform that action at this time.
0 commit comments