mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-23 05:24:46 -07:00
work to home
This commit is contained in:
@@ -35,6 +35,13 @@ struct SubGhzBlockGenericGlobal {
|
||||
bool cnt_need_override; // flag for protocols to override signals counter inside of protocols
|
||||
uint8_t cnt_length_bit; // counter length in bytes (used in counter editor giu)
|
||||
bool cnt_is_available; // is there counter available for protocol (used in counter editor giu)
|
||||
|
||||
uint8_t current_btn; // global counter value;
|
||||
uint8_t new_btn; // global counter value;
|
||||
bool btn_need_override; // flag for protocols to override signals counter inside of protocols
|
||||
bool btn_is_available; // is there counter available for protocol (used in counter editor giu)
|
||||
|
||||
bool endless_tx; // used for endless/breakless transmission in subghz protols (when user not release OK button)
|
||||
};
|
||||
|
||||
extern SubGhzBlockGenericGlobal subghz_block_generic_global; //global structure for subghz
|
||||
|
||||
@@ -135,7 +135,7 @@ LevelDuration subghz_protocol_encoder_alutech_at_4n_yield(void* context) {
|
||||
instance->encoder.repeat--;
|
||||
instance->encoder.front = 0;
|
||||
}
|
||||
|
||||
FURI_LOG_D("ALLLLLLL", "REPEAT - %i ", instance->encoder.repeat);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ void* subghz_protocol_encoder_ansonic_alloc(SubGhzEnvironment* environment) {
|
||||
instance->base.protocol = &subghz_protocol_ansonic;
|
||||
instance->generic.protocol_name = instance->base.protocol->name;
|
||||
|
||||
instance->encoder.repeat = 10;
|
||||
instance->encoder.repeat = 30;
|
||||
instance->encoder.size_upload = 52;
|
||||
instance->encoder.upload = malloc(instance->encoder.size_upload * sizeof(LevelDuration));
|
||||
instance->encoder.is_running = false;
|
||||
@@ -183,7 +183,7 @@ LevelDuration subghz_protocol_encoder_ansonic_yield(void* context) {
|
||||
instance->encoder.repeat--;
|
||||
instance->encoder.front = 0;
|
||||
}
|
||||
|
||||
FURI_LOG_D("ANNNN", "REPEAT - %i ",instance->encoder.repeat);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user