This commit is contained in:
RogueMaster
2022-10-18 18:23:56 -04:00
parent 300e6bda01
commit 6d4635e180
3 changed files with 3 additions and 10 deletions
+2 -2
View File
@@ -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;
-7
View File
@@ -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
+1 -1
View File
@@ -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;
}