Files
ProtoPirate/protocols/protocols_common.c
T
RocketGod a4937375ea @xMasterX (MMX) --> Add StarLine and Scher-Khan protocol support plus encryptions and fixes
This commit is from @xMasterX (MMX) and introduces implementation files for StarLine and Scher-Khan SubGhz protocols, including protocol decoders, encoders, and keeloq key management. Adds common protocol utilities, keystore handling, and protocol-specific logic for key generation, serialization, and deserialization.
2026-01-11 20:13:21 -08:00

18 lines
712 B
C

#include "protocols_common.h"
const char* protopirate_get_short_preset_name(const char* preset_name) {
if(!strcmp(preset_name, "FuriHalSubGhzPresetOok270Async")) {
return "AM270";
} else if(!strcmp(preset_name, "FuriHalSubGhzPresetOok650Async")) {
return "AM650";
} else if(!strcmp(preset_name, "FuriHalSubGhzPreset2FSKDev238Async")) {
return "FM238";
} else if(!strcmp(preset_name, "FuriHalSubGhzPreset2FSKDev12KAsync")) {
return "FM12K";
} else if(!strcmp(preset_name, "FuriHalSubGhzPreset2FSKDev476Async")) {
return "FM476";
} else if(!strcmp(preset_name, "FuriHalSubGhzPresetCustom")) {
return "CUSTOM";
}
return preset_name;
}