Skip to content

Commit 5571311

Browse files
committed
refactor: change function name to bots_trigger
1 parent a5184a7 commit 5571311

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

Core/Inc/pedals/bots-api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* \brief Function to activate when BOTS is triggered
88
*
99
*/
10-
void bots_set_triggered(void);
10+
void bots_trigger(void);
1111

1212
/*!
1313
* \brief Get bool to see if BOTS was triggered and, consequently, send an error message. It consumes true values, see below

Core/Src/pedals/bots-api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
EAGLETRT_STATIC bool bots_is_trigger_activated = false;
55

6-
void bots_set_triggered(void) {
6+
void bots_trigger(void) {
77
bots_is_trigger_activated = true;
88
}
99

test/test_bots/test_bots.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ void test_bots_not_activated() {
1919
}
2020

2121
void test_bots_activated() {
22-
bots_set_triggered();
23-
24-
TEST_ASSERT_TRUE(bots_is_trigger_activated);
25-
22+
bots_trigger();
2623
bool res = bots_is_triggered();
2724

2825
TEST_ASSERT_TRUE(res);

0 commit comments

Comments
 (0)