finalization of saving last settings

- Check loading of critical values in subghz_last_settings_log
- Change comparison of float type to safe
- Refactor
This commit is contained in:
DerSkythe
2023-08-08 17:31:46 +04:00
parent 8c44dfb6af
commit 5bbee02704
10 changed files with 44 additions and 29 deletions

View File

@@ -345,7 +345,21 @@ void subghz_txrx_reset_dynamic_and_custom_btns(SubGhzTxRx* instance);
SubGhzReceiver* subghz_txrx_get_receiver(SubGhzTxRx* instance); // TODO use only in DecodeRaw
/**
* @brief Set current preset AM650 without additional params
*
* @param instance - instance Pointer to a SubGhzTxRx
* @param frequency - frequency of preset, if pass 0 then taking default frequency 433.92MHz
*/
void subghz_txrx_set_default_preset(SubGhzTxRx* instance, uint32_t frequency);
/**
* @brief Set current preset by index
*
* @param instance - instance Pointer to a SubGhzTxRx
* @param frequency - frequency of new preset
* @param index - index of preset taken from SubGhzSetting
* @return const char* - name of preset
*/
const char*
subghz_txrx_set_preset_internal(SubGhzTxRx* instance, uint32_t frequency, uint8_t index);