mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-07 19:01:54 -07:00
Flags arent needed
This commit is contained in:
+1
-5
@@ -36,14 +36,10 @@ void fastpair_make_packet(uint8_t* out_size, uint8_t** out_packet, const BleSpam
|
||||
model_id = models[rand() % COUNT_OF(models)];
|
||||
}
|
||||
|
||||
uint8_t size = 17;
|
||||
uint8_t size = 14;
|
||||
uint8_t* packet = malloc(size);
|
||||
uint8_t i = 0;
|
||||
|
||||
packet[i++] = 2; // Size
|
||||
packet[i++] = 0x01; // AD Type (Flags)
|
||||
packet[i++] = 0x02 + (0x04 * (rand() % 2)); // GENERAL_DISC_MODE + maybe BR_EDR_NOT_SUPPORTED
|
||||
|
||||
packet[i++] = 3; // Size
|
||||
packet[i++] = 0x03; // AD Type (Service UUID List)
|
||||
packet[i++] = 0x2C; // Service UUID (Google LLC, FastPair)
|
||||
|
||||
Reference in New Issue
Block a user