Sort protocols

This commit is contained in:
Willy-JL
2023-11-13 22:23:37 +00:00
parent 8651dfcb12
commit b0fcb61cff
4 changed files with 4 additions and 9 deletions

View File

@@ -33,7 +33,6 @@ static Attack attacks[] = {
.cfg.continuity =
{
.type = ContinuityTypeCustomCrash,
.data = {},
},
},
},
@@ -47,7 +46,6 @@ static Attack attacks[] = {
.cfg.continuity =
{
.type = ContinuityTypeNearbyAction,
.data = {},
},
},
},
@@ -61,7 +59,6 @@ static Attack attacks[] = {
.cfg.continuity =
{
.type = ContinuityTypeProximityPair,
.data = {},
},
},
},
@@ -85,7 +82,6 @@ static Attack attacks[] = {
.cfg.easysetup =
{
.type = EasysetupTypeBuds,
.data = {},
},
},
},
@@ -99,7 +95,6 @@ static Attack attacks[] = {
.cfg.easysetup =
{
.type = EasysetupTypeWatch,
.data = {},
},
},
},

View File

@@ -2,8 +2,8 @@
const Protocol* protocols[] = {
&protocol_continuity,
&protocol_fastpair,
&protocol_easysetup,
&protocol_fastpair,
&protocol_swiftpair,
};

View File

@@ -1,8 +1,8 @@
#pragma once
#include "continuity.h"
#include "fastpair.h"
#include "easysetup.h"
#include "fastpair.h"
#include "swiftpair.h"
typedef enum {
@@ -21,8 +21,8 @@ struct Payload {
} bruteforce;
union {
ContinuityCfg continuity;
FastpairCfg fastpair;
EasysetupCfg easysetup;
FastpairCfg fastpair;
SwiftpairCfg swiftpair;
} cfg;
};

View File

@@ -1,4 +1,4 @@
#include "continuity_scenes.h"
#include "fastpair_scenes.h"
#include "easysetup_scenes.h"
#include "fastpair_scenes.h"
#include "swiftpair_scenes.h"