work to home

This commit is contained in:
Dmitry422
2026-01-30 21:43:05 +07:00
parent 1d734948d9
commit 0eae6030b0
5 changed files with 124 additions and 16 deletions

View File

@@ -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

View File

@@ -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;
}

View File

@@ -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;
}