| 589 | } |
| 590 | |
| 591 | bool ProcessCommandPA(ICECAdapter *parser, const std::string &command, std::string &arguments) |
| 592 | { |
| 593 | if (command == "pa") |
| 594 | { |
| 595 | std::string strB1, strB2; |
| 596 | uint8_t iB1, iB2; |
| 597 | if (GetWord(arguments, strB1) && HexStrToInt(strB1, iB1) && |
| 598 | GetWord(arguments, strB2) && HexStrToInt(strB2, iB2)) |
| 599 | { |
| 600 | uint16_t iPhysicalAddress = ((uint16_t)iB1 << 8) + iB2; |
| 601 | parser->SetPhysicalAddress(iPhysicalAddress); |
| 602 | return true; |
| 603 | } |
| 604 | } |
| 605 | |
| 606 | return false; |
| 607 | } |
| 608 | |
| 609 | bool ProcessCommandOSD(ICECAdapter *parser, const std::string &command, std::string &arguments) |
| 610 | { |
no test coverage detected