Refactor and enhance reset_channels_to_idle_state

- Refactor reset_channels_to_idle_state to reset_channels_to_defaults
and enhance functionality with direction reset logic. This is because
some tilt test cases were failing due to modified run limit values in some
of the previous core test cases. See #1089-3.
- A relay channel listener has been added to diagnose channel
states during tests.

Refs #1089
This commit is contained in:
2025-08-28 09:30:43 +03:00
parent ec1b25d489
commit 0cd6b4e263
3 changed files with 29 additions and 3 deletions

View File

@@ -18,4 +18,7 @@ extern const uint8_t gpio_count;
#define TEST_DELAY_MARGIN_MS 50
// Reset channels to Idle state
void reset_channels_to_idle_state(void);
void reset_channels_to_defaults(void);
// Relay channel state listener for tests
void test_state_listener(uint8_t id, relay_chn_state_t old_state, relay_chn_state_t new_state);