Loading system/vendor_libs/test_vendor_lib/model/controller/dual_mode_controller.cc +7 −9 Original line number Original line Diff line number Diff line Loading @@ -104,9 +104,7 @@ DualModeController::DualModeController(const std::string& properties_filename, u uint16_t index = (uint16_t)bluetooth::hci::OpCodeIndex::name; \ uint16_t index = (uint16_t)bluetooth::hci::OpCodeIndex::name; \ uint16_t byte_index = index / 10; \ uint16_t byte_index = index / 10; \ uint8_t bit = 1 << (index % 10); \ uint8_t bit = 1 << (index % 10); \ if (byte_index < 36) { \ supported_commands[byte_index] = supported_commands[byte_index] | bit; \ supported_commands[byte_index] = supported_commands[byte_index] | bit; \ } \ } } SET_SUPPORTED(RESET, Reset); SET_SUPPORTED(RESET, Reset); Loading Loading
system/vendor_libs/test_vendor_lib/model/controller/dual_mode_controller.cc +7 −9 Original line number Original line Diff line number Diff line Loading @@ -104,9 +104,7 @@ DualModeController::DualModeController(const std::string& properties_filename, u uint16_t index = (uint16_t)bluetooth::hci::OpCodeIndex::name; \ uint16_t index = (uint16_t)bluetooth::hci::OpCodeIndex::name; \ uint16_t byte_index = index / 10; \ uint16_t byte_index = index / 10; \ uint8_t bit = 1 << (index % 10); \ uint8_t bit = 1 << (index % 10); \ if (byte_index < 36) { \ supported_commands[byte_index] = supported_commands[byte_index] | bit; \ supported_commands[byte_index] = supported_commands[byte_index] | bit; \ } \ } } SET_SUPPORTED(RESET, Reset); SET_SUPPORTED(RESET, Reset); Loading