mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-22 05:14:46 -07:00
Spring cleaning
This commit is contained in:
@@ -522,19 +522,6 @@ static void bt_init_keys_settings(Bt* bt) {
|
||||
bt_handle_reload_keys_settings(bt);
|
||||
}
|
||||
|
||||
bool bt_remote_rssi(Bt* bt, uint8_t* rssi) {
|
||||
furi_assert(bt);
|
||||
|
||||
uint8_t rssi_val;
|
||||
uint32_t since = furi_hal_bt_get_conn_rssi(&rssi_val);
|
||||
|
||||
if(since == 0) return false;
|
||||
|
||||
*rssi = rssi_val;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
int32_t bt_srv(void* p) {
|
||||
UNUSED(p);
|
||||
Bt* bt = bt_alloc();
|
||||
|
||||
@@ -79,26 +79,6 @@ void bt_keys_storage_set_storage_path(Bt* bt, const char* keys_storage_path);
|
||||
*/
|
||||
void bt_keys_storage_set_default_path(Bt* bt);
|
||||
|
||||
/** Get BLE remote RSSI value
|
||||
*
|
||||
* @param bt Bt instance
|
||||
*
|
||||
* @return true on success
|
||||
*/
|
||||
bool bt_remote_rssi(Bt* bt, uint8_t* rssi);
|
||||
|
||||
/** Open a new RPC connection
|
||||
*
|
||||
* @param bt Bt instance
|
||||
*/
|
||||
void bt_open_rpc_connection(Bt* bt);
|
||||
|
||||
/** Close the active RPC connection
|
||||
*
|
||||
* @param bt Bt instance
|
||||
*/
|
||||
void bt_close_rpc_connection(Bt* bt);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -89,3 +89,15 @@ struct Bt {
|
||||
|
||||
bool suppress_pin_screen;
|
||||
};
|
||||
|
||||
/** Open a new RPC connection
|
||||
*
|
||||
* @param bt Bt instance
|
||||
*/
|
||||
void bt_open_rpc_connection(Bt* bt);
|
||||
|
||||
/** Close the active RPC connection
|
||||
*
|
||||
* @param bt Bt instance
|
||||
*/
|
||||
void bt_close_rpc_connection(Bt* bt);
|
||||
|
||||
Reference in New Issue
Block a user