UNLEASHED:: TX Power setting to SubGhz App

* Works in Read, and Read RAW.
* You can now adjust the TX power for testing devices without desyncing them from inside
* Lets you do RTL testing etc on very low power.

CODE REFACTORED, subghz_txrx_set_tx_power added.
This commit is contained in:
Leeroy
2026-02-04 17:11:03 +11:00
parent 30d48c112b
commit a515f435fc
11 changed files with 167 additions and 23 deletions

View File

@@ -207,7 +207,10 @@ SubGhz* subghz_alloc(bool alloc_for_tx_only) {
if(!alloc_for_tx_only) {
subghz_txrx_set_preset_internal(
subghz->txrx, subghz->last_settings->frequency, subghz->last_settings->preset_index);
subghz->txrx,
subghz->last_settings->frequency,
subghz->last_settings->preset_index,
subghz->tx_power);
subghz->history = subghz_history_alloc();
}
@@ -218,10 +221,13 @@ SubGhz* subghz_alloc(bool alloc_for_tx_only) {
if(!alloc_for_tx_only) {
subghz->ignore_filter = subghz->last_settings->ignore_filter;
subghz->filter = subghz->last_settings->filter;
subghz->tx_power = subghz->last_settings->tx_power;
} else {
subghz->filter = SubGhzProtocolFlag_Decodable;
subghz->ignore_filter = 0x0;
subghz->tx_power = 0;
}
subghz_txrx_receiver_set_filter(subghz->txrx, subghz->filter);
subghz_txrx_set_need_save_callback(subghz->txrx, subghz_save_to_file, subghz);