mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-27 03:49:58 -07:00
BLE Spam refactor random/set/custom mode handling
This commit is contained in:
@@ -10,12 +10,12 @@
|
||||
#include <core/core_defines.h>
|
||||
#include "../ble_spam.h"
|
||||
|
||||
typedef union ProtocolCfg ProtocolCfg;
|
||||
typedef struct ProtocolCfg ProtocolCfg;
|
||||
|
||||
typedef struct {
|
||||
const Icon* icon;
|
||||
const char* (*get_name)(const ProtocolCfg* _cfg);
|
||||
void (*make_packet)(uint8_t* _size, uint8_t** _packet, const ProtocolCfg* _cfg);
|
||||
void (*make_packet)(uint8_t* _size, uint8_t** _packet, ProtocolCfg* _cfg);
|
||||
void (*extra_config)(Ctx* ctx);
|
||||
uint8_t (*config_count)(const ProtocolCfg* _cfg);
|
||||
} Protocol;
|
||||
|
||||
Reference in New Issue
Block a user