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):
79
79
format_string = self .__generate_struct_format_string ()
80
80
args = []
81
81
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 ):
83
84
# Add length to fields that required that
84
85
if key in [PacketField .REQUIRED_SOFTDEVICES_ARRAY ,
85
86
PacketField .OPT_DATA ]:
@@ -94,7 +95,8 @@ def __generate_struct_format_string(self):
94
95
format_string = "<" # Use little endian format with standard sizes for python,
95
96
# see https://docs.python.org/2/library/struct.html
96
97
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 ):
98
100
if key in [PacketField .DEVICE_TYPE ,
99
101
PacketField .DEVICE_REVISION ,
100
102
]:
You can’t perform that action at this time.
0 commit comments