Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'applications/input/input.c')
-rw-r--r--applications/input/input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/input/input.c b/applications/input/input.c
index 55a10113..46a9c369 100644
--- a/applications/input/input.c
+++ b/applications/input/input.c
@@ -66,7 +66,7 @@ const char* input_get_type_name(InputType type) {
}
int32_t input_srv() {
- input = furi_alloc(sizeof(Input));
+ input = malloc(sizeof(Input));
input->thread = osThreadGetId();
input->event_pubsub = furi_pubsub_alloc();
furi_record_create("input_events", input->event_pubsub);
@@ -78,7 +78,7 @@ int32_t input_srv() {
}
#endif
- input->pin_states = furi_alloc(input_pins_count * sizeof(InputPinState));
+ input->pin_states = malloc(input_pins_count * sizeof(InputPinState));
for(size_t i = 0; i < input_pins_count; i++) {
GpioPin gpio = {(GPIO_TypeDef*)input_pins[i].port, (uint16_t)input_pins[i].pin};