Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7264dea authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Allow DualModeController to support newer Commands" am: 4043aebe am:...

Merge "Allow DualModeController to support newer Commands" am: 4043aebe am: f0593c92 am: 78039c13

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1826653

Change-Id: Ife9e5d9ef4482d2a3a7a623b5fb584124cf72315
parents 39cd054b 78039c13
Loading
Loading
Loading
Loading
+7 −9
Original line number Original line Diff line number Diff line
@@ -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);