Fix compile errors and warnings in movement.c and shell.c

This commit is contained in:
TheOnePerson 2024-03-29 11:49:48 +01:00
parent 955ac94de3
commit c22123961f
2 changed files with 4 additions and 3 deletions

View file

@ -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();
}

View file

@ -30,6 +30,7 @@
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#if __EMSCRIPTEN__
#include <emscripten.h>
@ -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++;