fixed xekboxes
This commit is contained in:
parent
6744a64fce
commit
60e3178e9a
7 changed files with 74 additions and 54 deletions
|
|
@ -104,11 +104,11 @@ void EndpointHandler::setRoles(Roles newRole){
|
|||
}
|
||||
|
||||
void EndpointHandler::assignRoles(Roles newRole){
|
||||
ep->assignRoles((uint8_t)newRole);
|
||||
ep->assignRoles(newRole);
|
||||
}
|
||||
|
||||
void EndpointHandler::removeRoles(Roles newRole){
|
||||
ep->removeRoles((uint8_t)newRole);
|
||||
ep->removeRoles(newRole);
|
||||
}
|
||||
|
||||
EndpointHandler::~EndpointHandler() {
|
||||
|
|
@ -136,17 +136,17 @@ uint64_t OverseerHandler::getPlaybackEndpointsCount(){
|
|||
|
||||
void OverseerHandler::reloadEndpointHandlers(){
|
||||
//std::vector<EndpointHandler*>* ephs = new std::vector<EndpointHandler*>;
|
||||
log_debugcpp(" VSize: " << this->getPlaybackEndpointsCount());
|
||||
log_debugcpp(" VSize: " + std::to_string(this->getPlaybackEndpointsCount()));
|
||||
|
||||
for(uint64_t i = 0; i < this->getPlaybackEndpointsCount(); i++){
|
||||
log_debugcpp("Creating handler " << i);
|
||||
log_debugcpp("Creating handler " + std::to_string(i));
|
||||
|
||||
if(i < (this->endpointHandlers.size()) &&
|
||||
this->endpointHandlers.at(i) != nullptr)
|
||||
delete endpointHandlers.at(i);
|
||||
|
||||
EndpointHandler* eph = new EndpointHandler(i);
|
||||
log_debugcpp("Created handler " << i << ", adding to vector. " << " VSize: " << this->getPlaybackEndpointsCount());
|
||||
log_debugcpp("Created handler " + std::to_string(i) + ", adding to vector. " + " VSize: " + std::to_string(this->getPlaybackEndpointsCount()));
|
||||
|
||||
if (i >= this->endpointHandlers.size())
|
||||
endpointHandlers.push_back(eph);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue