mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 19:20:30 +08:00
Fix compile errors and warnings in movement.c and shell.c
This commit is contained in:
parent
955ac94de3
commit
c22123961f
|
@ -319,11 +319,11 @@ void movement_request_wake() {
|
||||||
_movement_reset_inactivity_countdown();
|
_movement_reset_inactivity_countdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
void end_buzzing() {
|
static void end_buzzing() {
|
||||||
movement_state.is_buzzing = false;
|
movement_state.is_buzzing = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void end_buzzing_and_disable_buzzer(void) {
|
static void end_buzzing_and_disable_buzzer(void) {
|
||||||
end_buzzing();
|
end_buzzing();
|
||||||
watch_disable_buzzer();
|
watch_disable_buzzer();
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#if __EMSCRIPTEN__
|
#if __EMSCRIPTEN__
|
||||||
#include <emscripten.h>
|
#include <emscripten.h>
|
||||||
|
@ -57,7 +58,7 @@ static char *prv_skip_whitespace(char *c) {
|
||||||
if (*c == 0) {
|
if (*c == 0) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (!isspace((int) *c) != 0) {
|
if ((!isspace((int) *c)) != 0) {
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
c++;
|
c++;
|
||||||
|
|
Loading…
Reference in a new issue