mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Sub-GHz Remote: Fix hang with RAW files, prevent it for the future --nobuild
This commit is contained in:
Submodule applications/external updated: eac9fab55e...725321fa9f
@@ -292,10 +292,12 @@ void* subghz_protocol_encoder_raw_alloc(SubGhzEnvironment* environment) {
|
||||
void subghz_protocol_encoder_raw_stop(void* context) {
|
||||
furi_check(context);
|
||||
SubGhzProtocolEncoderRAW* instance = context;
|
||||
furi_check(instance->file_worker_encoder);
|
||||
instance->is_running = false;
|
||||
if(subghz_file_encoder_worker_is_running(instance->file_worker_encoder)) {
|
||||
subghz_file_encoder_worker_stop(instance->file_worker_encoder);
|
||||
subghz_file_encoder_worker_free(instance->file_worker_encoder);
|
||||
instance->file_worker_encoder = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -320,6 +322,7 @@ void subghz_protocol_raw_file_encoder_worker_set_callback_end(
|
||||
|
||||
static bool subghz_protocol_encoder_raw_worker_init(SubGhzProtocolEncoderRAW* instance) {
|
||||
furi_assert(instance);
|
||||
furi_check(!instance->file_worker_encoder);
|
||||
|
||||
instance->file_worker_encoder = subghz_file_encoder_worker_alloc();
|
||||
if(subghz_file_encoder_worker_start(
|
||||
|
||||
Reference in New Issue
Block a user