| 446 | } |
| 447 | |
| 448 | bool ProcessCommandON(ICECAdapter *parser, const std::string &command, std::string &arguments) |
| 449 | { |
| 450 | if (command == "on") |
| 451 | { |
| 452 | std::string strValue; |
| 453 | uint8_t iValue = 0; |
| 454 | if (GetWord(arguments, strValue) && HexStrToInt(strValue, iValue) && iValue <= 0xF) |
| 455 | { |
| 456 | parser->PowerOnDevices((cec_logical_address) iValue); |
| 457 | return true; |
| 458 | } |
| 459 | else |
| 460 | { |
| 461 | PrintToStdOut("invalid destination"); |
| 462 | } |
| 463 | } |
| 464 | |
| 465 | return false; |
| 466 | } |
| 467 | |
| 468 | bool ProcessCommandSTANDBY(ICECAdapter *parser, const std::string &command, std::string &arguments) |
| 469 | { |
no test coverage detected