mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-13 19:43:34 -07:00
sub upds
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user