From b01dc36fbf09c3ebf8efe1bac54205ace1b1c6cc Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Thu, 23 Mar 2023 05:30:30 +0000 Subject: Tidy up duplication of MIN/MAX fallback implementations (#20236) --- quantum/audio/audio.c | 1 + quantum/audio/audio.h | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'quantum/audio') diff --git a/quantum/audio/audio.c b/quantum/audio/audio.c index 3f6dc20232..2570ad9cd1 100644 --- a/quantum/audio/audio.c +++ b/quantum/audio/audio.c @@ -18,6 +18,7 @@ #include "eeconfig.h" #include "timer.h" #include "wait.h" +#include "util.h" /* audio system: * diff --git a/quantum/audio/audio.h b/quantum/audio/audio.h index 6feecb5e65..497f3dafd0 100644 --- a/quantum/audio/audio.h +++ b/quantum/audio/audio.h @@ -43,11 +43,6 @@ typedef union { }; } audio_config_t; -// AVR/LUFA has a MIN, arm/chibios does not -#ifndef MIN -# define MIN(a, b) (((a) < (b)) ? (a) : (b)) -#endif - /* * a 'musical note' is represented by pitch and duration; a 'musical tone' adds intensity and timbre * https://en.wikipedia.org/wiki/Musical_tone -- cgit v1.2.3