Skip to content

Commit

Permalink
Merge pull request joeycastillo#388 from TheOnePerson/fix-compile-errors
Browse files Browse the repository at this point in the history
Fix compile errors and warnings in movement.c and shell.c
  • Loading branch information
theAlexes authored Apr 9, 2024
2 parents 45beca1 + c221239 commit 439843f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions movement/movement.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
3 changes: 2 additions & 1 deletion movement/shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

#if __EMSCRIPTEN__
#include <emscripten.h>
Expand Down Expand Up @@ -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++;
Expand Down

0 comments on commit 439843f

Please sign in to comment.