@@ -173,6 +173,8 @@ def find_image_or_exit( product_name, fw_version_regex = r'(\d+\.){3}(\d+)' ):
173
173
product_line = device .get_info ( rs .camera_info .product_line )
174
174
product_name = device .get_info ( rs .camera_info .name )
175
175
log .d ( 'product line:' , product_line )
176
+ sn = device .get_info ( rs .camera_info .serial_number )
177
+ print ("Device serial number = " + repr (sn ))
176
178
###############################################################################
177
179
#
178
180
@@ -184,7 +186,7 @@ def find_image_or_exit( product_name, fw_version_regex = r'(\d+\.){3}(\d+)' ):
184
186
log .d ( "recovering device ..." )
185
187
try :
186
188
image_file = find_image_or_exit (product_name ) if not custom_fw_d400_path else custom_fw_d400_path
187
- cmd = [fw_updater_exe , '-r' , '-f' , image_file ]
189
+ cmd = [fw_updater_exe , '-r' , '-f' , image_file , '-s' , sn ]
188
190
if custom_fw_d400_path :
189
191
# unsiged fw
190
192
cmd .insert (1 , '-u' )
@@ -230,7 +232,7 @@ def find_image_or_exit( product_name, fw_version_regex = r'(\d+\.){3}(\d+)' ):
230
232
image_file = find_image_or_exit (product_name , fw_version_regex ) if not custom_fw_d400_path else custom_fw_d400_path
231
233
# finding file containing image for FW update
232
234
233
- cmd = [fw_updater_exe , '-f' , image_file ]
235
+ cmd = [fw_updater_exe , '-f' , image_file , '-s' , sn ]
234
236
if custom_fw_d400_path :
235
237
# unsigned fw
236
238
cmd .insert (1 , '-u' )
0 commit comments