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>
This commit is contained in:
@@ -427,7 +427,7 @@ static NotificationApp* notification_app_alloc() {
|
||||
|
||||
// display backlight control
|
||||
app->event_record = furi_record_open("input_events");
|
||||
subscribe_pubsub(app->event_record, input_event_callback, app);
|
||||
furi_pubsub_subscribe(app->event_record, input_event_callback, app);
|
||||
notification_message(app, &sequence_display_on);
|
||||
|
||||
return app;
|
||||
|
@@ -44,7 +44,7 @@ typedef struct {
|
||||
|
||||
struct NotificationApp {
|
||||
osMessageQueueId_t queue;
|
||||
PubSub* event_record;
|
||||
FuriPubSub* event_record;
|
||||
osTimerId_t display_timer;
|
||||
|
||||
NotificationLedLayer display;
|
||||
|
Reference in New Issue
Block a user