mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-23 05:24:46 -07:00
don't use much bits for 8bit values [ci skip]
This commit is contained in:
@@ -109,10 +109,10 @@ void subghz_txrx_set_preset(
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint8_t*
|
uint8_t*
|
||||||
subghz_txrx_set_tx_power(uint8_t* preset_data, size_t preset_data_size, uint32_t tx_power) {
|
subghz_txrx_set_tx_power(uint8_t* preset_data, size_t preset_data_size, uint8_t tx_power) {
|
||||||
#define TX_POWER_OFFSET 7
|
#define TX_POWER_OFFSET 7
|
||||||
#define TX_PRESET_POWER_COUNT 11
|
#define TX_PRESET_POWER_COUNT 11
|
||||||
const uint32_t tx_power_value[TX_PRESET_POWER_COUNT] = {
|
const uint8_t tx_power_value[TX_PRESET_POWER_COUNT] = {
|
||||||
0,
|
0,
|
||||||
0xC0,
|
0xC0,
|
||||||
0xC5,
|
0xC5,
|
||||||
@@ -708,7 +708,7 @@ const char* subghz_txrx_set_preset_internal(
|
|||||||
SubGhzTxRx* instance,
|
SubGhzTxRx* instance,
|
||||||
uint32_t frequency,
|
uint32_t frequency,
|
||||||
uint8_t index,
|
uint8_t index,
|
||||||
uint32_t tx_power) {
|
uint8_t tx_power) {
|
||||||
furi_assert(instance);
|
furi_assert(instance);
|
||||||
|
|
||||||
//Grab the prset name.
|
//Grab the prset name.
|
||||||
|
|||||||
@@ -64,8 +64,7 @@ void subghz_txrx_set_preset(
|
|||||||
* @param preset_data_size Size of preset data
|
* @param preset_data_size Size of preset data
|
||||||
* @param tx_power Menu Index of TX Power Setting. (Saves iterating in Config enter)
|
* @param tx_power Menu Index of TX Power Setting. (Saves iterating in Config enter)
|
||||||
*/
|
*/
|
||||||
uint8_t*
|
uint8_t* subghz_txrx_set_tx_power(uint8_t* preset_data, size_t preset_data_size, uint8_t tx_power);
|
||||||
subghz_txrx_set_tx_power(uint8_t* preset_data, size_t preset_data_size, uint32_t tx_power);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get name of preset
|
* Get name of preset
|
||||||
@@ -377,4 +376,4 @@ const char* subghz_txrx_set_preset_internal(
|
|||||||
SubGhzTxRx* instance,
|
SubGhzTxRx* instance,
|
||||||
uint32_t frequency,
|
uint32_t frequency,
|
||||||
uint8_t index,
|
uint8_t index,
|
||||||
uint32_t tx_power);
|
uint8_t tx_power);
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ struct SubGhz {
|
|||||||
|
|
||||||
uint16_t idx_menu_chosen;
|
uint16_t idx_menu_chosen;
|
||||||
SubGhzLoadTypeFile load_type_file;
|
SubGhzLoadTypeFile load_type_file;
|
||||||
uint32_t tx_power;
|
uint8_t tx_power;
|
||||||
void* rpc_ctx;
|
void* rpc_ctx;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ typedef struct {
|
|||||||
bool delete_old_signals;
|
bool delete_old_signals;
|
||||||
float hopping_threshold;
|
float hopping_threshold;
|
||||||
bool leds_and_amp;
|
bool leds_and_amp;
|
||||||
uint32_t tx_power;
|
uint8_t tx_power;
|
||||||
} SubGhzLastSettings;
|
} SubGhzLastSettings;
|
||||||
|
|
||||||
SubGhzLastSettings* subghz_last_settings_alloc(void);
|
SubGhzLastSettings* subghz_last_settings_alloc(void);
|
||||||
|
|||||||
Reference in New Issue
Block a user