mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 11:10:29 +08:00
Merge pull request #388 from TheOnePerson/fix-compile-errors
Fix compile errors and warnings in movement.c and shell.c
This commit is contained in:
commit
439843f56b
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue