diff --git a/stm-firmware/Makefile b/stm-firmware/Makefile index 3bc8a31..e764476 100644 --- a/stm-firmware/Makefile +++ b/stm-firmware/Makefile @@ -54,7 +54,7 @@ LFLAGS += -Tstm32f407vet6_flash.ld -Wl,-Map=$(mapfile).map CFLAGS = -c -fmessage-length=0 -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork CFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16 -nostartfiles -O0 -g - +CFLAGS += -Wall -Wextra -Wold-style-declaration -Wuninitialized -Wmaybe-uninitialized -Wunused-parameter #################################################################################### OBJ = $(CFILES:%.c=$(OBJDIR)/%.c.o) diff --git a/stm-firmware/shell.c b/stm-firmware/shell.c index b3dfea9..2c914c5 100644 --- a/stm-firmware/shell.c +++ b/stm-firmware/shell.c @@ -121,6 +121,7 @@ static shellmatta_retCode_t shell_cmd_clear_error_status(const shellmatta_handle { (void)arguments; (void)length; + (void)handle; adc_pt1000_clear_error(); @@ -133,6 +134,7 @@ static shellmatta_retCode_t shell_cmd_uptime(const shellmatta_handle_t handle, { (void)arguments; (void)length; + shellmatta_printf(handle, "Uptime: %llu secs", global_tick_ms/1000); return SHELLMATTA_OK; }