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:
@@ -1,4 +1,5 @@
|
||||
#include "power_i.h"
|
||||
|
||||
#include <furi.h>
|
||||
#include "furi-hal-power.h"
|
||||
#include "furi-hal-bootloader.h"
|
||||
@@ -30,7 +31,7 @@ void power_get_info(Power* power, PowerInfo* info) {
|
||||
osMutexRelease(power->info_mtx);
|
||||
}
|
||||
|
||||
PubSub* power_get_pubsub(Power* power) {
|
||||
FuriPubSub* power_get_pubsub(Power* power) {
|
||||
furi_assert(power);
|
||||
return &power->event_pubsub;
|
||||
return power->event_pubsub;
|
||||
}
|
||||
|
Reference in New Issue
Block a user