diff options
author | Anna Prosvetova <anna@prosvetova.me> | 2021-11-01 23:35:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-01 23:35:54 +0300 |
commit | e9e76e144c13424869bf8afabfd8e8882baa0c24 (patch) | |
tree | 36cd3122d291408c30aef00056409fff7b8f669d /applications/bt | |
parent | b397442d895194aec75c9075e74ac820cb4e6817 (diff) |
RPC: Implement storage_stat_request (#800)
* RPC: Update protobuf sources
* RPC: Implement storage_stat_request
* RPC: Test storage_stat_request
* FuriRecord: fix use after free in destroy method.
* Furi: refactor PubSub and it's usage. Fix allocation in RPC.
* FuriCore: fix memory leak in pubsub
* FuriCore: update unsubscribe method signature in pubsub, make subscription structure lighter.
* FuriCore: remove dead code
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
Diffstat (limited to 'applications/bt')
-rwxr-xr-x | applications/bt/bt_service/bt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/bt/bt_service/bt.c b/applications/bt/bt_service/bt.c index 2ea1599b..de4c58d4 100755 --- a/applications/bt/bt_service/bt.c +++ b/applications/bt/bt_service/bt.c @@ -69,8 +69,8 @@ Bt* bt_alloc() { // Power bt->power = furi_record_open("power"); - PubSub* power_pubsub = power_get_pubsub(bt->power); - subscribe_pubsub(power_pubsub, bt_battery_level_changed_callback, bt); + FuriPubSub* power_pubsub = power_get_pubsub(bt->power); + furi_pubsub_subscribe(power_pubsub, bt_battery_level_changed_callback, bt); // RPC bt->rpc = furi_record_open("rpc"); |