From bd2d7b0149fab900f138b0ed0827c57490b8ab2d Mon Sep 17 00:00:00 2001 From: victhor Date: Tue, 7 Apr 2026 19:47:25 +0200 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20make=20dummy=20have=20invalid=20chan?= =?UTF-8?q?nel=20n=C2=BA=20for=20rising,=20falling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/HALAL/Models/TimerDomain/TimerDomain.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Src/HALAL/Models/TimerDomain/TimerDomain.cpp b/Src/HALAL/Models/TimerDomain/TimerDomain.cpp index 3a13b905b..c8df1a895 100644 --- a/Src/HALAL/Models/TimerDomain/TimerDomain.cpp +++ b/Src/HALAL/Models/TimerDomain/TimerDomain.cpp @@ -24,7 +24,10 @@ TIM_HandleTypeDef htim24; void (*TimerDomain::callbacks[TimerDomain::max_instances])(void*) = {nullptr}; void* TimerDomain::callback_data[TimerDomain::max_instances] = {nullptr}; -TimerDomain::InputCaptureInfo input_capture_info_dummy = {0}; +TimerDomain::InputCaptureInfo input_capture_info_dummy = { + .channel_rising = 0xFF, // any value that isn't possible here + .channel_falling = 0xFF, // any value that isn't possible here +}; TimerDomain::InputCaptureInfo* TimerDomain::input_capture_info[max_instances] [input_capture_channels] = { From 08bc3c919a7b14095cb5a8984659dba1f30107f9 Mon Sep 17 00:00:00 2001 From: victhor Date: Tue, 7 Apr 2026 19:51:46 +0200 Subject: [PATCH 2/3] add changeset for this pr --- .changesets/hotfix-inputcapture.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .changesets/hotfix-inputcapture.md diff --git a/.changesets/hotfix-inputcapture.md b/.changesets/hotfix-inputcapture.md new file mode 100644 index 000000000..0a1348f37 --- /dev/null +++ b/.changesets/hotfix-inputcapture.md @@ -0,0 +1,4 @@ +release: patch +summary: input capture hotfix for errorhandler + +fix: make dummy have invalid channel nº for rising, falling \ No newline at end of file From dbc25a79b3d7d61fa066e7b46b58032ebd2688e2 Mon Sep 17 00:00:00 2001 From: victhor Date: Tue, 7 Apr 2026 19:54:44 +0200 Subject: [PATCH 3/3] formatting --- .changesets/hotfix-inputcapture.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changesets/hotfix-inputcapture.md b/.changesets/hotfix-inputcapture.md index 0a1348f37..b01a8d664 100644 --- a/.changesets/hotfix-inputcapture.md +++ b/.changesets/hotfix-inputcapture.md @@ -1,4 +1,4 @@ release: patch summary: input capture hotfix for errorhandler -fix: make dummy have invalid channel nº for rising, falling \ No newline at end of file +fix: make dummy have invalid channel nº for rising, falling