Fix conflict with existing macro.

This commit is contained in:
Dennis Frett 2022-09-06 19:56:48 +02:00
parent 0bccd083f6
commit a21295dd07
2 changed files with 6 additions and 6 deletions

View file

@ -40,10 +40,10 @@ class MiniDSP : public HIDUniversal {
public: public:
enum class InputSource : uint8_t { enum class InputSource : uint8_t {
ANALOG = 0x00, Analog = 0x00,
TOSLINK = 0x01, Toslink = 0x01,
USB = 0x02, USB = 0x02,
UNKNOWN = 0x03 Unknown = 0x03
}; };
/** /**
@ -126,7 +126,7 @@ public:
/** /**
* Retrieve the current input source of the MiniDSP. * 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 { InputSource getInputSource() const {
return inputSource; return inputSource;

View file

@ -28,9 +28,9 @@ void OnMutedChange(bool isMuted) {
void OnInputSourceChange(MiniDSP::InputSource inputSource) { void OnInputSourceChange(MiniDSP::InputSource inputSource) {
String inputSourceStr; String inputSourceStr;
if(inputSource == MiniDSP::InputSource::ANALOG) { if(inputSource == MiniDSP::InputSource::Analog) {
inputSourceStr = "Analog"; inputSourceStr = "Analog";
} else if(inputSource == MiniDSP::InputSource::TOSLINK) { } else if(inputSource == MiniDSP::InputSource::Toslink) {
inputSourceStr = "Toslink"; inputSourceStr = "Toslink";
} else if(inputSource == MiniDSP::InputSource::USB) { } else if(inputSource == MiniDSP::InputSource::USB) {
inputSourceStr = "USB"; inputSourceStr = "USB";