Skip to content

Commit 8d89913

Browse files
committed
epacket: packet: use requested auth
Use the requested authorisation level for the final hop, instead of hardcoding `Auth.DEVICE`. Signed-off-by: Jordan Yates <jordan@embeint.com>
1 parent a7711d4 commit 8d89913

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/infuse_iot/epacket/packet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def to_serial(self, database: DeviceDatabase) -> bytes:
233233
assert bt_addr is not None
234234

235235
# Forwarded payload
236-
forward_payload = CtypeBtGattFrame.encrypt(database, final.infuse_id, self.ptype, Auth.DEVICE, self.payload)
236+
forward_payload = CtypeBtGattFrame.encrypt(database, final.infuse_id, self.ptype, final.auth, self.payload)
237237

238238
# Forwarding header
239239
forward_hdr = CtypeForwardHeaderBtGatt(

0 commit comments

Comments
 (0)