mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 20:08:36 -07:00
Even simpler nearby action packet --nobuild
This commit is contained in:
@@ -15,7 +15,7 @@ const char* continuity_get_type_name(ContinuityType type) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static size_t continuity_packet_sizes[ContinuityTypeCount] = {
|
static size_t continuity_packet_sizes[ContinuityTypeCount] = {
|
||||||
[ContinuityTypeNearbyAction] = 17,
|
[ContinuityTypeNearbyAction] = 11,
|
||||||
[ContinuityTypeProximityPair] = 31,
|
[ContinuityTypeProximityPair] = 31,
|
||||||
};
|
};
|
||||||
size_t continuity_get_packet_size(ContinuityType type) {
|
size_t continuity_get_packet_size(ContinuityType type) {
|
||||||
@@ -37,12 +37,6 @@ void continuity_generate_packet(const ContinuityMsg* msg, uint8_t* packet) {
|
|||||||
packet[i++] = (rand() % 256); // Authentication Tag
|
packet[i++] = (rand() % 256); // Authentication Tag
|
||||||
packet[i++] = (rand() % 256); // ...
|
packet[i++] = (rand() % 256); // ...
|
||||||
packet[i++] = (rand() % 256); // ...
|
packet[i++] = (rand() % 256); // ...
|
||||||
packet[i++] = (rand() % 256); // Action Parameters
|
|
||||||
packet[i++] = (rand() % 256); // ...
|
|
||||||
packet[i++] = (rand() % 256); // ...
|
|
||||||
packet[i++] = (rand() % 256); // ...
|
|
||||||
packet[i++] = (rand() % 256); // ...
|
|
||||||
packet[i++] = (rand() % 256); // ...
|
|
||||||
break;
|
break;
|
||||||
case ContinuityTypeProximityPair:
|
case ContinuityTypeProximityPair:
|
||||||
packet[i++] = 0x07; // Type (Proximity Pair)
|
packet[i++] = 0x07; // Type (Proximity Pair)
|
||||||
|
|||||||
Reference in New Issue
Block a user