From a21295dd07d4328c4cd3615979b21c38fcf6cda4 Mon Sep 17 00:00:00 2001 From: Dennis Frett Date: Tue, 6 Sep 2022 19:56:48 +0200 Subject: [PATCH] Fix conflict with existing macro. --- MiniDSP.h | 8 ++++---- examples/MiniDSP/MiniDSP.ino | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/MiniDSP.h b/MiniDSP.h index eff53c91..c3163f31 100644 --- a/MiniDSP.h +++ b/MiniDSP.h @@ -40,10 +40,10 @@ class MiniDSP : public HIDUniversal { public: enum class InputSource : uint8_t { - ANALOG = 0x00, - TOSLINK = 0x01, + Analog = 0x00, + Toslink = 0x01, USB = 0x02, - UNKNOWN = 0x03 + Unknown = 0x03 }; /** @@ -126,7 +126,7 @@ public: /** * Retrieve the current input source of the MiniDSP. - * @return Current input source: `ANALOG`, `TOSLINK` or `USB`. + * @return Current input source: `Analog`, `Toslink` or `USB`. */ InputSource getInputSource() const { return inputSource; diff --git a/examples/MiniDSP/MiniDSP.ino b/examples/MiniDSP/MiniDSP.ino index bb4d51be..58301dbb 100644 --- a/examples/MiniDSP/MiniDSP.ino +++ b/examples/MiniDSP/MiniDSP.ino @@ -28,9 +28,9 @@ void OnMutedChange(bool isMuted) { void OnInputSourceChange(MiniDSP::InputSource inputSource) { String inputSourceStr; - if(inputSource == MiniDSP::InputSource::ANALOG) { + if(inputSource == MiniDSP::InputSource::Analog) { inputSourceStr = "Analog"; - } else if(inputSource == MiniDSP::InputSource::TOSLINK) { + } else if(inputSource == MiniDSP::InputSource::Toslink) { inputSourceStr = "Toslink"; } else if(inputSource == MiniDSP::InputSource::USB) { inputSourceStr = "USB";