mirror of
https://protopirate.net/ProtoPirate/ProtoPirate.git
synced 2026-10-23 03:11:16 +00:00
indent code
This commit is contained in:
1 parent
db1fe3c6cf
commit
c644b1bbf8
5 files changed
+520
-347
No files matched your search
+1
-1
@@ -37,4 +37,4 @@ void subghz_protocol_encoder_fiat_v0_free(void* context);
|
||||
SubGhzProtocolStatus
|
||||
subghz_protocol_encoder_fiat_v0_deserialize(void* context, FlipperFormat* flipper_format);
|
||||
void subghz_protocol_encoder_fiat_v0_stop(void* context);
|
||||
LevelDuration subghz_protocol_encoder_fiat_v0_yield(void* context);
|
||||
LevelDuration subghz_protocol_encoder_fiat_v0_yield(void* context);
|
||||
+502
-334
File diff suppressed because it is too large.
Load diff
@@ -38,4 +38,3 @@ SubGhzProtocolStatus
|
||||
subghz_protocol_encoder_psa_deserialize(void* context, FlipperFormat* flipper_format);
|
||||
void subghz_protocol_encoder_psa_stop(void* context);
|
||||
LevelDuration subghz_protocol_encoder_psa_yield(void* context);
|
||||
|
||||
+16
-10
@@ -10,11 +10,11 @@ static const SubGhzBlockConst subghz_protocol_subaru_const = {
|
||||
.min_count_bit_for_found = 64,
|
||||
};
|
||||
|
||||
#define SUBARU_PREAMBLE_PAIRS 80
|
||||
#define SUBARU_GAP_US 2800
|
||||
#define SUBARU_SYNC_US 2800
|
||||
#define SUBARU_TOTAL_BURSTS 3
|
||||
#define SUBARU_INTER_BURST_GAP 25000
|
||||
#define SUBARU_PREAMBLE_PAIRS 80
|
||||
#define SUBARU_GAP_US 2800
|
||||
#define SUBARU_SYNC_US 2800
|
||||
#define SUBARU_TOTAL_BURSTS 3
|
||||
#define SUBARU_INTER_BURST_GAP 25000
|
||||
|
||||
typedef struct SubGhzProtocolDecoderSubaru {
|
||||
SubGhzProtocolDecoderBase base;
|
||||
@@ -357,8 +357,12 @@ SubGhzProtocolStatus
|
||||
subghz_protocol_encoder_subaru_get_upload(instance);
|
||||
instance->encoder.is_running = true;
|
||||
|
||||
FURI_LOG_I(TAG, "Encoder ready: key=0x%016llX, serial=0x%06lX, btn=0x%X",
|
||||
instance->key, instance->serial, instance->btn);
|
||||
FURI_LOG_I(
|
||||
TAG,
|
||||
"Encoder ready: key=0x%016llX, serial=0x%06lX, btn=0x%X",
|
||||
instance->key,
|
||||
instance->serial,
|
||||
instance->btn);
|
||||
|
||||
ret = SubGhzProtocolStatusOk;
|
||||
} while(false);
|
||||
@@ -563,9 +567,11 @@ SubGhzProtocolStatus subghz_protocol_decoder_subaru_serialize(
|
||||
do {
|
||||
if(!flipper_format_write_uint32(flipper_format, "Frequency", &preset->frequency, 1)) break;
|
||||
if(!flipper_format_write_string_cstr(
|
||||
flipper_format, "Preset", furi_string_get_cstr(preset->name))) break;
|
||||
flipper_format, "Preset", furi_string_get_cstr(preset->name)))
|
||||
break;
|
||||
if(!flipper_format_write_string_cstr(
|
||||
flipper_format, "Protocol", instance->generic.protocol_name)) break;
|
||||
flipper_format, "Protocol", instance->generic.protocol_name))
|
||||
break;
|
||||
|
||||
uint32_t bits = 64;
|
||||
if(!flipper_format_write_uint32(flipper_format, "Bit", &bits, 1)) break;
|
||||
@@ -623,4 +629,4 @@ void subghz_protocol_decoder_subaru_get_string(void* context, FuriString* output
|
||||
instance->serial,
|
||||
instance->btn,
|
||||
instance->cnt);
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -34,4 +34,4 @@ void subghz_protocol_encoder_subaru_free(void* context);
|
||||
SubGhzProtocolStatus
|
||||
subghz_protocol_encoder_subaru_deserialize(void* context, FlipperFormat* flipper_format);
|
||||
void subghz_protocol_encoder_subaru_stop(void* context);
|
||||
LevelDuration subghz_protocol_encoder_subaru_yield(void* context);
|
||||
LevelDuration subghz_protocol_encoder_subaru_yield(void* context);
|
||||
Reference in new issue
Block a user