From c22123961f52304630a8084e3af606ca7a808ce0 Mon Sep 17 00:00:00 2001 From: TheOnePerson Date: Fri, 29 Mar 2024 11:49:48 +0100 Subject: [PATCH] Fix compile errors and warnings in movement.c and shell.c --- movement/movement.c | 4 ++-- movement/shell.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/movement/movement.c b/movement/movement.c index 0b292a1..cb3dcf7 100644 --- a/movement/movement.c +++ b/movement/movement.c @@ -319,11 +319,11 @@ void movement_request_wake() { _movement_reset_inactivity_countdown(); } -void end_buzzing() { +static void end_buzzing() { movement_state.is_buzzing = false; } -void end_buzzing_and_disable_buzzer(void) { +static void end_buzzing_and_disable_buzzer(void) { end_buzzing(); watch_disable_buzzer(); } diff --git a/movement/shell.c b/movement/shell.c index 8f146e5..3782068 100644 --- a/movement/shell.c +++ b/movement/shell.c @@ -30,6 +30,7 @@ #include #include #include +#include #if __EMSCRIPTEN__ #include @@ -57,7 +58,7 @@ static char *prv_skip_whitespace(char *c) { if (*c == 0) { return NULL; } - if (!isspace((int) *c) != 0) { + if ((!isspace((int) *c)) != 0) { return c; } c++;