diff options
-rw-r--r-- | quantum/audio/audio_arm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/audio/audio_arm.c b/quantum/audio/audio_arm.c index 6b54d80acf..36f4f00c5d 100644 --- a/quantum/audio/audio_arm.c +++ b/quantum/audio/audio_arm.c @@ -85,7 +85,7 @@ static bool should_shutoff_dac(void); static void shutoff_dac(void); static void shutoff_dac_callback(void *arg); -#define PLAY_NOTE_TIMEOUT MS2ST(5) +#define PLAY_NOTE_TIMEOUT TIME_MS2I(5) #define DAC_BUFFER_SIZE 100 #ifndef DAC_SAMPLE_MAX # define DAC_SAMPLE_MAX 65535U @@ -583,7 +583,7 @@ static void gpt_cb8(GPTDriver *gptp) { } } -bool should_shutoff_dac() { return ST2MS(chVTTimeElapsedSinceX(last_note_played_at)) > 5 && dac_on; } +bool should_shutoff_dac() { return TIME_MS2I(chVTTimeElapsedSinceX(last_note_played_at)) > 5 && dac_on; } void shutoff_dac() { dacStopConversion(&DACD2); |