diff --git a/src/Makefile b/src/Makefile index fad279c..96b08ef 100644 --- a/src/Makefile +++ b/src/Makefile @@ -81,7 +81,15 @@ endif export AS = vasmm68k_mot export ASFLAGS = $(VASM_CPU) -quiet -Fvobj -nowarn=62 -DMODEL=$(MODEL_NUMBER) export CC = vc -export DEFINES = -DCPU=$(CPU_NUMBER) -DMODEL=$(MODEL_NUMBER) # -DKBD_POLLED +DEFINES = -DCPU=$(CPU_NUMBER) -DMODEL=$(MODEL_NUMBER) # -DKBD_POLLED + +# Logging level +ifeq ("$(DEFAULT_LOG_LEVEL)","") +else + DEFINES := $(DEFINES) -DDEFAULT_LOG_LEVEL=$(DEFAULT_LOG_LEVEL) +endif + +export DEFINES:=$(DEFINES) # When compiling an image for flash, size to which the image must be padded PAD_FLASH_SIZE=524288 diff --git a/src/log.c b/src/log.c index 8c2548f..26b4a08 100644 --- a/src/log.c +++ b/src/log.c @@ -33,7 +33,7 @@ static void (*do_log)(const char* message); static void log_to_uart(const char* message); static void log_to_screen(const char* message); -#define UART_COM1 1 +#define UART_COM1 0 /* Can use the buzzer as sound clues */ void buzzer_on(void) { diff --git a/src/log.h b/src/log.h index 9f25ad8..b4cfc21 100644 --- a/src/log.h +++ b/src/log.h @@ -16,7 +16,7 @@ * Settings */ #ifndef DEFAULT_LOG_LEVEL - #define DEFAULT_LOG_LEVEL LOG_TRACE + #define DEFAULT_LOG_LEVEL LOG_ERROR #endif #ifndef LOG_CHANNEL