This commit is contained in:
Willy-JL
2024-02-16 11:27:05 +00:00
91 changed files with 3578 additions and 2228 deletions

View File

@@ -1,3 +1,4 @@
#include "profiles/serial_profile.h"
#include "rpc_i.h"
#include <pb.h>
@@ -334,7 +335,7 @@ static int32_t rpc_session_worker(void* context) {
// Disconnect BLE session
FURI_LOG_E("RPC", "BLE session closed due to a decode error");
Bt* bt = furi_record_open(RECORD_BT);
bt_set_profile(bt, BtProfileSerial);
bt_profile_restore_default(bt);
furi_record_close(RECORD_BT);
FURI_LOG_E("RPC", "Finished disconnecting the BLE session");
}

View File

@@ -94,6 +94,7 @@ void rpc_session_set_send_bytes_callback(RpcSession* session, RpcSendBytesCallba
*
* @param session pointer to RpcSession descriptor
* @param callback callback to notify client that buffer is empty (can be NULL)
* @param context context to pass to callback
*/
void rpc_session_set_buffer_is_empty_callback(
RpcSession* session,