Skip to content

Commit

Permalink
reorder device types to match message 0x84
Browse files Browse the repository at this point in the history
  • Loading branch information
arpruss committed May 4, 2021
1 parent cff4979 commit 0682356
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/CEC/CEC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
int CEC_LogicalDevice::_validLogicalAddresses[6][5] =
{ {CLA_TV, CLA_FREE_USE, CLA_UNREGISTERED, CLA_UNREGISTERED, CLA_UNREGISTERED, },
{CLA_RECORDING_DEVICE_1, CLA_RECORDING_DEVICE_2, CLA_RECORDING_DEVICE_3, CLA_UNREGISTERED, CLA_UNREGISTERED, },
{CLA_PLAYBACK_DEVICE_1, CLA_PLAYBACK_DEVICE_2, CLA_PLAYBACK_DEVICE_3, CLA_UNREGISTERED, CLA_UNREGISTERED, },
{CLA_UNREGISTERED, CLA_UNREGISTERED, CLA_UNREGISTERED, CLA_UNREGISTERED, CLA_UNREGISTERED, },
{CLA_TUNER_1, CLA_TUNER_2, CLA_TUNER_3, CLA_TUNER_4, CLA_UNREGISTERED, },
{CLA_PLAYBACK_DEVICE_1, CLA_PLAYBACK_DEVICE_2, CLA_PLAYBACK_DEVICE_3, CLA_UNREGISTERED, CLA_UNREGISTERED, },
{CLA_AUDIO_SYSTEM, CLA_UNREGISTERED, CLA_UNREGISTERED, CLA_UNREGISTERED, CLA_UNREGISTERED, },
{CLA_UNREGISTERED, CLA_UNREGISTERED, CLA_UNREGISTERED, CLA_UNREGISTERED, CLA_UNREGISTERED, },
};

#define MAKE_ADDRESS(s,d) ((((s) & 0xf) << 4) | ((d) & 0xf))
Expand Down
4 changes: 2 additions & 2 deletions src/CEC/CEC.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ class CEC_LogicalDevice : public CEC_Electrical
typedef enum {
CDT_TV,
CDT_RECORDING_DEVICE,
CDT_PLAYBACK_DEVICE,
CDT_OTHER, // Not a real CEC type..
CDT_TUNER,
CDT_PLAYBACK_DEVICE,
CDT_AUDIO_SYSTEM,
CDT_OTHER, // Not a real CEC type..
} CEC_DEVICE_TYPE;

public:
Expand Down

0 comments on commit 0682356

Please sign in to comment.