cec: replaced a load of magic numbers
[deb_libcec.git] / src / testclient / main.cpp
index 58994531bf8d1f7d28708fd679f5f5d01b26cb76..65e99bcd95ee40927c195a491277bc8ca5c56005 100644 (file)
@@ -322,7 +322,7 @@ bool ProcessCommandSP(ICECAdapter *parser, const string &command, string &argume
     if (GetWord(arguments, strAddress))
     {
       sscanf(strAddress.c_str(), "%x", &iAddress);
-      if (iAddress >= 0 && iAddress <= 0xFFFF)
+      if (iAddress >= 0 && iAddress <= CEC_INVALID_PHYSICAL_ADDRESS)
         parser->SetStreamPath((uint16_t)iAddress);
       return true;
     }