fixed - don't try to set controlled mode when using firmware version 1 and crash...
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 23 Oct 2012 13:28:53 +0000 (15:28 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 23 Oct 2012 17:50:59 +0000 (19:50 +0200)
src/lib/adapter/Pulse-Eight/USBCECAdapterCommands.cpp

index 717e7d3f3e7be4225051e9ef12d4e903be5ffe55..944806828ea5553c95d6549c8f006ee22cd00f58 100644 (file)
@@ -104,6 +104,10 @@ uint16_t CUSBCECAdapterCommands::RequestFirmwareVersion(void)
     m_persistedConfiguration.iFirmwareVersion = 1;
   }
 
+  // firmware versions < 2 don't have an autonomous mode
+  if (m_persistedConfiguration.iFirmwareVersion < 2)
+    m_bControlledMode = true;
+
   return m_persistedConfiguration.iFirmwareVersion;
 }