| 395 | } |
| 396 | |
| 397 | bool ProcessCommandSP(ICECAdapter *parser, const std::string &command, std::string &arguments) |
| 398 | { |
| 399 | if (command == "sp") |
| 400 | { |
| 401 | std::string strAddress; |
| 402 | int iAddress; |
| 403 | if (GetWord(arguments, strAddress)) |
| 404 | { |
| 405 | sscanf(strAddress.c_str(), "%x", &iAddress); |
| 406 | if (iAddress >= 0 && iAddress <= CEC_INVALID_PHYSICAL_ADDRESS) |
| 407 | parser->SetStreamPath((uint16_t)iAddress); |
| 408 | return true; |
| 409 | } |
| 410 | } |
| 411 | |
| 412 | return false; |
| 413 | } |
| 414 | |
| 415 | bool ProcessCommandSPL(ICECAdapter *parser, const std::string &command, std::string &arguments) |
| 416 | { |
no test coverage detected