Skip to content

Commit

Permalink
Merge pull request #30 from randomrumble/libcec3_compat
Browse files Browse the repository at this point in the history
compat for libcec3 that lacks CEC_MAX_DATA_PACKET_SIZE
  • Loading branch information
nforro authored Jun 22, 2018
2 parents 50cd217 + 42399ef commit 5a2a6c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions device.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,10 @@ struct Device {
};

PyTypeObject * DeviceTypeInit(CEC::ICECAdapter * adapter);

/*
* Compat for libcec 3.x
*/
#if CEC_LIB_VERSION_MAJOR < 4
#define CEC_MAX_DATA_PACKET_SIZE (16 * 4)
#endif

0 comments on commit 5a2a6c8

Please sign in to comment.