diff --git a/lib/subghz/protocols/raw.c b/lib/subghz/protocols/raw.c index fda466334..dd81cfe92 100644 --- a/lib/subghz/protocols/raw.c +++ b/lib/subghz/protocols/raw.c @@ -17,7 +17,7 @@ #define SUBGHZ_DOWNLOAD_MAX_SIZE 512 #define SUBGHZ_AUTO_DETECT_DOWNLOAD_MAX_SIZE 2048 #define SUBGHZ_AUTO_DETECT_RAW_THRESHOLD -72.0f -#define SUBGHZ_AUTO_DETECT_RAW_POSTROLL_FRAMES 30 +#define SUBGHZ_AUTO_DETECT_RAW_POSTROLL_FRAMES 40 static const SubGhzBlockConst subghz_protocol_raw_const = { .te_short = 50, @@ -214,7 +214,7 @@ void subghz_protocol_decoder_raw_set_rssi_threshold(void* context, int rssi_thre furi_assert(context); SubGhzProtocolDecoderRAW* instance = context; - FURI_LOG_E(TAG, "RSSI set: (%d)", rssi_threshold); + FURI_LOG_D(TAG, "RSSI set: (%d)", rssi_threshold); instance->rssi_threshold = rssi_threshold; diff --git a/lib/subghz/protocols/raw.h b/lib/subghz/protocols/raw.h index fa025589e..9f1598471 100644 --- a/lib/subghz/protocols/raw.h +++ b/lib/subghz/protocols/raw.h @@ -143,13 +143,6 @@ void subghz_protocol_encoder_raw_free(void* context); void subghz_protocol_encoder_raw_stop(void* context); /** - * Сallback on completion of file transfer. - * @param context Pointer to a SubGhzProtocolEncoderRAW instance - */ -// void subghz_protocol_raw_file_encoder_worker_callback_end(void* context); - -/** - * Set callback on completion of file transfer. * @param instance Pointer to a SubGhzProtocolEncoderRAW instance * @param callback_end Callback, SubGhzProtocolEncoderRAWCallbackEnd diff --git a/lib/subghz/subghz_tx_rx_worker.c b/lib/subghz/subghz_tx_rx_worker.c index 37c0bfc5e..edebfcd81 100644 --- a/lib/subghz/subghz_tx_rx_worker.c +++ b/lib/subghz/subghz_tx_rx_worker.c @@ -236,7 +236,7 @@ bool subghz_tx_rx_worker_start(SubGhzTxRxWorker* instance, uint32_t frequency) { instance->worker_running = true; - if(furi_hal_region_is_frequency_allowed(frequency)) { + if(furi_hal_subghz_is_tx_allowed(frequency)) { instance->frequency = frequency; res = true; }