mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-15 08:43:37 +03:00
rollback
This commit is contained in:
parent
6b3faefcca
commit
941ff162e8
@ -44,7 +44,6 @@ bool subghz_scene_set_seed_on_event(void* context, SceneManagerEvent event) {
|
||||
subghz_transmitter_alloc_init(subghz->txrx->environment, "Faac SLH");
|
||||
if(subghz->txrx->transmitter) {
|
||||
subghz_protocol_faac_slh_create_data(
|
||||
subghz->txrx->transmitter->protocol_instance,
|
||||
subghz->txrx->transmitter->protocol_instance,
|
||||
subghz->txrx->fff_data,
|
||||
fix_part >> 4,
|
||||
|
@ -83,7 +83,6 @@ const SubGhzProtocol subghz_protocol_faac_slh = {
|
||||
* @param instance Pointer to a SubGhzBlockGeneric* instance
|
||||
* @param keystore Pointer to a SubGhzKeystore* instance
|
||||
* @param manufacture_name
|
||||
* @param seed Seed 32bit
|
||||
*/
|
||||
static void subghz_protocol_faac_slh_check_remote_controller
|
||||
(SubGhzBlockGeneric* instance,
|
||||
@ -163,7 +162,6 @@ static bool subghz_protocol_faac_slh_gen_data(SubGhzProtocolEncoderFaacSLH* inst
|
||||
|
||||
bool subghz_protocol_faac_slh_create_data(
|
||||
void* context,
|
||||
void* context2,
|
||||
FlipperFormat* flipper_format,
|
||||
uint32_t serial,
|
||||
uint8_t btn,
|
||||
@ -173,14 +171,11 @@ bool subghz_protocol_faac_slh_create_data(
|
||||
uint32_t frequency,
|
||||
FuriHalSubGhzPreset preset) {
|
||||
furi_assert(context);
|
||||
furi_assert(context2);
|
||||
SubGhzProtocolEncoderFaacSLH* instance = context;
|
||||
SubGhzProtocolDecoderFaacSLH* instance2 = context2;
|
||||
instance->generic.serial = serial;
|
||||
instance->generic.btn = btn;
|
||||
instance->generic.cnt = cnt;
|
||||
instance->generic.seed = seed;
|
||||
instance2->generic.seed = instance->generic.seed;
|
||||
instance->manufacture_name = manufacture_name;
|
||||
instance->generic.data_count_bit = 64;
|
||||
bool res = subghz_protocol_faac_slh_gen_data(instance);
|
||||
@ -402,6 +397,7 @@ static void subghz_protocol_faac_slh_check_remote_controller
|
||||
(SubGhzBlockGeneric* instance,
|
||||
SubGhzKeystore* keystore,
|
||||
const char** manufacture_name) {
|
||||
|
||||
FURI_LOG_I(TAG, "SEED (decrypt init): %8X\n", instance->seed);
|
||||
uint32_t code_fix = instance->data >> 32;
|
||||
uint32_t code_hop = instance->data & 0xFFFFFFFF;
|
||||
@ -465,8 +461,6 @@ void subghz_protocol_decoder_faac_slh_get_string(void* context, string_t output)
|
||||
furi_assert(context);
|
||||
SubGhzProtocolDecoderFaacSLH* instance = context;
|
||||
subghz_protocol_faac_slh_check_remote_controller(&instance->generic, instance->keystore, &instance->manufacture_name);
|
||||
//uint64_t code_found_reverse = subghz_protocol_blocks_reverse_key(
|
||||
//instance->generic.data, instance->generic.data_count_bit);
|
||||
uint32_t code_fix = instance->generic.data >> 32;
|
||||
uint32_t code_hop = instance->generic.data & 0xFFFFFFFF;
|
||||
|
||||
|
@ -27,7 +27,6 @@ void subghz_protocol_encoder_faac_slh_free(void* context);
|
||||
/**
|
||||
* Key generation from simple data.
|
||||
* @param context Pointer to a SubGhzProtocolEncoderFaacSLH instance
|
||||
* @param context2 Pointer to a SubGhzProtocolDecoderFaacSLH instance
|
||||
* @param flipper_format Pointer to a FlipperFormat instance
|
||||
* @param serial Serial number, 28 bit
|
||||
* @param btn Button number, 4 bit
|
||||
@ -40,7 +39,6 @@ void subghz_protocol_encoder_faac_slh_free(void* context);
|
||||
*/
|
||||
bool subghz_protocol_faac_slh_create_data(
|
||||
void* context,
|
||||
void* context2,
|
||||
FlipperFormat* flipper_format,
|
||||
uint32_t serial,
|
||||
uint8_t btn,
|
||||
|
Loading…
Reference in New Issue
Block a user