File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
tools/nrfutil-0.5.2/nordicsemi/dfu Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,8 @@ def generate_packet(self):
7979 format_string = self .__generate_struct_format_string ()
8080 args = []
8181
82- for key in sorted (self .init_packet_fields .keys (), key = lambda x : x .value ):
82+ #for key in sorted(self.init_packet_fields.keys(), key=lambda x: x.value):
83+ for key in sorted (self .init_packet_fields .keys (), key = lambda x : x ):
8384 # Add length to fields that required that
8485 if key in [PacketField .REQUIRED_SOFTDEVICES_ARRAY ,
8586 PacketField .OPT_DATA ]:
@@ -94,7 +95,8 @@ def __generate_struct_format_string(self):
9495 format_string = "<" # Use little endian format with standard sizes for python,
9596 # see https://docs.python.org/2/library/struct.html
9697
97- for key in sorted (self .init_packet_fields .keys (), key = lambda x : x .value ):
98+ #for key in sorted(self.init_packet_fields.keys(), key=lambda x: x.value):
99+ for key in sorted (self .init_packet_fields .keys (), key = lambda x : x ):
98100 if key in [PacketField .DEVICE_TYPE ,
99101 PacketField .DEVICE_REVISION ,
100102 ]:
You can’t perform that action at this time.
0 commit comments