File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -89,16 +89,16 @@ def create_packet(raw, operating_mode):
89
89
if operating_mode != OperatingMode .ESCAPED_API_MODE and operating_mode != OperatingMode .API_MODE :
90
90
raise InvalidOperatingModeException (operating_mode .name + " is not supported." )
91
91
92
- raw = XBeeAPIPacket ._unescape_data (raw ) if operating_mode == OperatingMode .ESCAPED_API_MODE else raw
92
+ _raw = XBeeAPIPacket ._unescape_data (raw ) if operating_mode == OperatingMode .ESCAPED_API_MODE else raw
93
93
94
- XBeeAPIPacket ._check_api_packet (raw , min_length = RXIPv4Packet .__MIN_PACKET_LENGTH )
94
+ XBeeAPIPacket ._check_api_packet (_raw , min_length = RXIPv4Packet .__MIN_PACKET_LENGTH )
95
95
96
- if raw [3 ] != ApiFrameType .RX_IPV4 .code :
96
+ if _raw [3 ] != ApiFrameType .RX_IPV4 .code :
97
97
raise InvalidPacketException ("This packet is not an RXIPv4Packet." )
98
98
99
- return RXIPv4Packet (IPv4Address (bytes (raw [4 :8 ])), utils .bytes_to_int (raw [8 :10 ]),
100
- utils .bytes_to_int (raw [10 :12 ]), IPProtocol .get (raw [12 ]),
101
- raw [14 :- 1 ])
99
+ return RXIPv4Packet (IPv4Address (bytes (_raw [4 :8 ])), utils .bytes_to_int (_raw [8 :10 ]),
100
+ utils .bytes_to_int (_raw [10 :12 ]), IPProtocol .get (_raw [12 ]),
101
+ _raw [14 :- 1 ])
102
102
103
103
def needs_id (self ):
104
104
"""
You can’t perform that action at this time.
0 commit comments