From e5760c76651f6c1d292d25248c046d2c55a15d52 Mon Sep 17 00:00:00 2001 From: SkorP Date: Fri, 14 Jun 2024 10:28:22 +0400 Subject: [PATCH 1/3] Clock: update api v.65.0 --- clock/application.fam | 2 +- clock/clock_app.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clock/application.fam b/clock/application.fam index 13e9f0fe..e4bb9cf5 100644 --- a/clock/application.fam +++ b/clock/application.fam @@ -6,7 +6,7 @@ App( entry_point="clock_app", requires=["gui"], stack_size=2 * 1024, - fap_version="1.1", + fap_version="1.2", fap_description="Simple clock app", fap_icon="clock.png", fap_category="Tools", diff --git a/clock/clock_app.c b/clock/clock_app.c index e36243da..2f9f5e98 100644 --- a/clock/clock_app.c +++ b/clock/clock_app.c @@ -28,7 +28,7 @@ typedef struct { ClockData* data; } Clock; -static void clock_input_callback(InputEvent* input_event, FuriMessageQueue* queue) { +static void clock_input_callback(InputEvent* input_event, void* queue) { furi_assert(queue); ClockEvent event = {.type = ClockEventTypeKey, .input = *input_event}; furi_message_queue_put(queue, &event, FuriWaitForever); From 44dbd8abf2eb871c05323977427d0bc9c5c1de54 Mon Sep 17 00:00:00 2001 From: SkorP Date: Fri, 14 Jun 2024 10:44:21 +0400 Subject: [PATCH 2/3] clock: fix var type --- clock/clock_app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clock/clock_app.c b/clock/clock_app.c index 2f9f5e98..6b445d76 100644 --- a/clock/clock_app.c +++ b/clock/clock_app.c @@ -31,7 +31,7 @@ typedef struct { static void clock_input_callback(InputEvent* input_event, void* queue) { furi_assert(queue); ClockEvent event = {.type = ClockEventTypeKey, .input = *input_event}; - furi_message_queue_put(queue, &event, FuriWaitForever); + furi_message_queue_put((FuriMessageQueue*)queue, &event, FuriWaitForever); } static void clock_render_callback(Canvas* canvas, void* ctx) { From 1daf599a873768bdda9f8b0aca18e545857c4e4b Mon Sep 17 00:00:00 2001 From: SkorP Date: Fri, 14 Jun 2024 14:18:59 +0400 Subject: [PATCH 3/3] clock: add changelog --- clock/.catalog/changelog.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 clock/.catalog/changelog.md diff --git a/clock/.catalog/changelog.md b/clock/.catalog/changelog.md new file mode 100644 index 00000000..1da76dc7 --- /dev/null +++ b/clock/.catalog/changelog.md @@ -0,0 +1,6 @@ +## 1.2 + - Update API v65.0 +## 1.1 + - Update to latest datetime API +## 1.0 + - Initial release