mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-12 10:18:35 -07:00
Sort protocols
This commit is contained in:
5
applications/external/ble_spam/ble_spam.c
vendored
5
applications/external/ble_spam/ble_spam.c
vendored
@@ -33,7 +33,6 @@ static Attack attacks[] = {
|
|||||||
.cfg.continuity =
|
.cfg.continuity =
|
||||||
{
|
{
|
||||||
.type = ContinuityTypeCustomCrash,
|
.type = ContinuityTypeCustomCrash,
|
||||||
.data = {},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -47,7 +46,6 @@ static Attack attacks[] = {
|
|||||||
.cfg.continuity =
|
.cfg.continuity =
|
||||||
{
|
{
|
||||||
.type = ContinuityTypeNearbyAction,
|
.type = ContinuityTypeNearbyAction,
|
||||||
.data = {},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -61,7 +59,6 @@ static Attack attacks[] = {
|
|||||||
.cfg.continuity =
|
.cfg.continuity =
|
||||||
{
|
{
|
||||||
.type = ContinuityTypeProximityPair,
|
.type = ContinuityTypeProximityPair,
|
||||||
.data = {},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -85,7 +82,6 @@ static Attack attacks[] = {
|
|||||||
.cfg.easysetup =
|
.cfg.easysetup =
|
||||||
{
|
{
|
||||||
.type = EasysetupTypeBuds,
|
.type = EasysetupTypeBuds,
|
||||||
.data = {},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -99,7 +95,6 @@ static Attack attacks[] = {
|
|||||||
.cfg.easysetup =
|
.cfg.easysetup =
|
||||||
{
|
{
|
||||||
.type = EasysetupTypeWatch,
|
.type = EasysetupTypeWatch,
|
||||||
.data = {},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
const Protocol* protocols[] = {
|
const Protocol* protocols[] = {
|
||||||
&protocol_continuity,
|
&protocol_continuity,
|
||||||
&protocol_fastpair,
|
|
||||||
&protocol_easysetup,
|
&protocol_easysetup,
|
||||||
|
&protocol_fastpair,
|
||||||
&protocol_swiftpair,
|
&protocol_swiftpair,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "continuity.h"
|
#include "continuity.h"
|
||||||
#include "fastpair.h"
|
|
||||||
#include "easysetup.h"
|
#include "easysetup.h"
|
||||||
|
#include "fastpair.h"
|
||||||
#include "swiftpair.h"
|
#include "swiftpair.h"
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
@@ -21,8 +21,8 @@ struct Payload {
|
|||||||
} bruteforce;
|
} bruteforce;
|
||||||
union {
|
union {
|
||||||
ContinuityCfg continuity;
|
ContinuityCfg continuity;
|
||||||
FastpairCfg fastpair;
|
|
||||||
EasysetupCfg easysetup;
|
EasysetupCfg easysetup;
|
||||||
|
FastpairCfg fastpair;
|
||||||
SwiftpairCfg swiftpair;
|
SwiftpairCfg swiftpair;
|
||||||
} cfg;
|
} cfg;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "continuity_scenes.h"
|
#include "continuity_scenes.h"
|
||||||
#include "fastpair_scenes.h"
|
|
||||||
#include "easysetup_scenes.h"
|
#include "easysetup_scenes.h"
|
||||||
|
#include "fastpair_scenes.h"
|
||||||
#include "swiftpair_scenes.h"
|
#include "swiftpair_scenes.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user