fix adv name length bug & finalize merge

This commit is contained in:
yocvito
2023-02-12 01:06:41 +01:00
parent 6de0470b4d
commit 9132fa2961
4 changed files with 5 additions and 9 deletions

View File

@@ -92,13 +92,9 @@ static bool browser_filter_by_name(BrowserWorker* browser, FuriString* name, boo
if(is_folder) {
// Skip assets folders (if enabled)
if(browser->skip_assets) {
<<<<<<< HEAD
return ((furi_string_cmp_str(name, ASSETS_DIR) == 0) ? (false) : (true)) &&
((furi_string_cmp_str(name, BADKB_LAYOUTS_DIR) == 0) ? (false) : (true)) &&
((furi_string_cmp_str(name, SUBGHZ_TEMP_DIR) == 0) ? (false) : (true));
=======
return ((furi_string_cmp_str(name, ASSETS_DIR) == 0) ? (false) : (true));
>>>>>>> upstream/dev
} else {
return true;
}

View File

@@ -1,5 +1,5 @@
entry,status,name,type,params
Version,+,15.1,,
Version,v,17.0,,
Header,+,applications/services/bt/bt_service/bt.h,,
Header,+,applications/services/cli/cli.h,,
Header,+,applications/services/cli/cli_vcp.h,,
@@ -1028,7 +1028,6 @@ Function,+,furi_hal_bt_hid_consumer_key_press,_Bool,uint16_t
Function,+,furi_hal_bt_hid_consumer_key_release,_Bool,uint16_t
Function,+,furi_hal_bt_hid_consumer_key_release_all,_Bool,
Function,+,furi_hal_bt_hid_get_led_state,uint8_t,
Function,+,furi_hal_bt_hid_kb_free_slots,_Bool,uint8_t
Function,+,furi_hal_bt_hid_kb_press,_Bool,uint16_t
Function,+,furi_hal_bt_hid_kb_release,_Bool,uint16_t
Function,+,furi_hal_bt_hid_kb_release_all,_Bool,
@@ -1056,7 +1055,7 @@ Function,+,furi_hal_bt_serial_start,void,
Function,+,furi_hal_bt_serial_stop,void,
Function,+,furi_hal_bt_serial_tx,_Bool,"uint8_t*, uint16_t"
Function,+,furi_hal_bt_set_key_storage_change_callback,void,"BleGlueKeyStorageChangedCallback, void*"
Function,+,furi_hal_bt_set_profile_adv_name,void,"FuriHalBtProfile, const char[( 1 + ( 8 + 1 ) ) - 1]"
Function,+,furi_hal_bt_set_profile_adv_name,void,"FuriHalBtProfile, const char[( 1 + ( 8 + 1 ) ) + 9 - 1]"
Function,+,furi_hal_bt_set_profile_mac_addr,void,"FuriHalBtProfile, const uint8_t[( 6 )]"
Function,+,furi_hal_bt_set_profile_pairing_method,void,"FuriHalBtProfile, GapPairing"
Function,+,furi_hal_bt_start_advertising,void,
@@ -3060,12 +3059,12 @@ Function,-,subghz_protocol_decoder_star_line_free,void,void*
Function,-,subghz_protocol_decoder_star_line_get_hash_data,uint8_t,void*
Function,-,subghz_protocol_decoder_star_line_get_string,void,"void*, FuriString*"
Function,-,subghz_protocol_decoder_star_line_reset,void,void*
Function,-,subghz_protocol_decoder_star_line_serialize,_Bool,"void*, FlipperFormat*, SubGhzRadioPreset*"
Function,-,subghz_protocol_encoder_alutech_at_4n_alloc,void*,SubGhzEnvironment*
Function,-,subghz_protocol_encoder_alutech_at_4n_deserialize,_Bool,"void*, FlipperFormat*"
Function,-,subghz_protocol_encoder_alutech_at_4n_free,void,void*
Function,-,subghz_protocol_encoder_alutech_at_4n_stop,void,void*
Function,-,subghz_protocol_encoder_alutech_at_4n_yield,LevelDuration,void*
Function,-,subghz_protocol_decoder_star_line_serialize,_Bool,"void*, FlipperFormat*, SubGhzRadioPreset*"
Function,-,subghz_protocol_encoder_ansonic_alloc,void*,SubGhzEnvironment*
Function,-,subghz_protocol_encoder_ansonic_deserialize,_Bool,"void*, FlipperFormat*"
Function,-,subghz_protocol_encoder_ansonic_free,void,void*
1 entry status name type params
2 Version + v 15.1 17.0
3 Header + applications/services/bt/bt_service/bt.h
4 Header + applications/services/cli/cli.h
5 Header + applications/services/cli/cli_vcp.h
1028 Function + furi_hal_bt_hid_consumer_key_release _Bool uint16_t
1029 Function + furi_hal_bt_hid_consumer_key_release_all _Bool
1030 Function + furi_hal_bt_hid_get_led_state uint8_t
Function + furi_hal_bt_hid_kb_free_slots _Bool uint8_t
1031 Function + furi_hal_bt_hid_kb_press _Bool uint16_t
1032 Function + furi_hal_bt_hid_kb_release _Bool uint16_t
1033 Function + furi_hal_bt_hid_kb_release_all _Bool
1055 Function + furi_hal_bt_serial_stop void
1056 Function + furi_hal_bt_serial_tx _Bool uint8_t*, uint16_t
1057 Function + furi_hal_bt_set_key_storage_change_callback void BleGlueKeyStorageChangedCallback, void*
1058 Function + furi_hal_bt_set_profile_adv_name void FuriHalBtProfile, const char[( 1 + ( 8 + 1 ) ) - 1] FuriHalBtProfile, const char[( 1 + ( 8 + 1 ) ) + 9 - 1]
1059 Function + furi_hal_bt_set_profile_mac_addr void FuriHalBtProfile, const uint8_t[( 6 )]
1060 Function + furi_hal_bt_set_profile_pairing_method void FuriHalBtProfile, GapPairing
1061 Function + furi_hal_bt_start_advertising void
3059 Function - subghz_protocol_decoder_star_line_get_hash_data uint8_t void*
3060 Function - subghz_protocol_decoder_star_line_get_string void void*, FuriString*
3061 Function - subghz_protocol_decoder_star_line_reset void void*
3062 Function - subghz_protocol_decoder_star_line_serialize _Bool void*, FlipperFormat*, SubGhzRadioPreset*
3063 Function - subghz_protocol_encoder_alutech_at_4n_alloc void* SubGhzEnvironment*
3064 Function - subghz_protocol_encoder_alutech_at_4n_deserialize _Bool void*, FlipperFormat*
3065 Function - subghz_protocol_encoder_alutech_at_4n_free void void*
3066 Function - subghz_protocol_encoder_alutech_at_4n_stop void void*
3067 Function - subghz_protocol_encoder_alutech_at_4n_yield LevelDuration void*
Function - subghz_protocol_decoder_star_line_serialize _Bool void*, FlipperFormat*, SubGhzRadioPreset*
3068 Function - subghz_protocol_encoder_ansonic_alloc void* SubGhzEnvironment*
3069 Function - subghz_protocol_encoder_ansonic_deserialize _Bool void*, FlipperFormat*
3070 Function - subghz_protocol_encoder_ansonic_free void void*

View File

@@ -468,6 +468,7 @@ void furi_hal_bt_set_profile_adv_name(
furi_assert(profile < FuriHalBtProfileNumber);
furi_assert(name);
profile_config[profile].config.adv_name[0] = 0x09;
memcpy(
&(profile_config[profile].config.adv_name[1]),
name,

View File

@@ -17,7 +17,7 @@ extern "C" {
#define FURI_HAL_VERSION_NAME_LENGTH 8
#define FURI_HAL_VERSION_ARRAY_NAME_LENGTH (FURI_HAL_VERSION_NAME_LENGTH + 1)
/** BLE symbol + name */
#define FURI_HAL_VERSION_DEVICE_NAME_LENGTH (1 + FURI_HAL_VERSION_ARRAY_NAME_LENGTH)
#define FURI_HAL_VERSION_DEVICE_NAME_LENGTH (1 + FURI_HAL_VERSION_ARRAY_NAME_LENGTH) + 9 // for bad kb custom name
/** OTP Versions enum */
typedef enum {