cec: don't retry polls
[deb_libcec.git] / src / lib / AdapterCommunication.cpp
index 3a1cfeb735b022749de36aa61cb18f4622d62d02..7f801b62d2bf8162b652f39d25621f9f99631d7c 100644 (file)
@@ -43,6 +43,7 @@ using namespace CEC;
 CCECAdapterMessage::CCECAdapterMessage(const cec_command &command)
 {
   clear();
+  maxTries = command.retries + 1;
 
   //set ack polarity to high when transmitting to the broadcast address
   //set ack polarity low when transmitting to any other address