mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Fix conflict with existing macro.
This commit is contained in:
parent
0bccd083f6
commit
a21295dd07
2 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue