Skip to content

Commit 4b3cc92

Browse files
committed
Make the copilot reviewer happy
1 parent 9161f8b commit 4b3cc92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linux/airpods_packets.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ namespace AirPodsPackets
197197
quint16 len1 = (static_cast<quint8>(data.at(index)) << 8) | static_cast<quint8>(data.at(index + 1));
198198
if (len1 != 16)
199199
return keys;
200-
index += 3; // Skip length and reserved byte
200+
index += 3; // Skip length (2 bytes) and reserved byte (1 byte)
201201

202202
keys.magicAccIRK = data.mid(index, 16);
203203
index += 16;
@@ -210,7 +210,7 @@ namespace AirPodsPackets
210210
quint16 len2 = (static_cast<quint8>(data.at(index)) << 8) | static_cast<quint8>(data.at(index + 1));
211211
if (len2 != 16)
212212
return keys;
213-
index += 3; // Skip length and reserved byte
213+
index += 3; // Skip length (2 bytes) and reserved byte (1 byte)
214214

215215
keys.magicAccEncKey = data.mid(index, 16);
216216

0 commit comments

Comments
 (0)