Skip to content

Commit 0aaa16b

Browse files
committed
fixed numerical wireless transport update
1 parent 4ad1e22 commit 0aaa16b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/PatchObject.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,20 @@ void PatchObject::update(map<int,shared_ptr<PatchObject>> &patchObjects, pdsp::E
188188

189189
//--------------------------------------------------------------
190190
void PatchObject::updateWirelessLinks(map<int,shared_ptr<PatchObject>> &patchObjects){
191+
192+
// Continuosly update float type ONLY wireless links
193+
for(map<int,shared_ptr<PatchObject>>::iterator it = patchObjects.begin(); it != patchObjects.end(); it++ ){
194+
for(int in=0;in<it->second->getNumInlets();in++){
195+
for(int out=0;out<this->getNumOutlets();out++){
196+
if(it->second->getInletWirelessReceive(in) && this->getOutletWirelessSend(out) && this->getOutletType(out) == it->second->getInletType(in) && this->getOutletType(out) == VP_LINK_NUMERIC && this->getOutletID(out) == it->second->getInletID(in)){
197+
if(it->second->inletsConnected[in]){
198+
it->second->_inletParams[in] = this->_outletParams[out];
199+
}
200+
}
201+
}
202+
}
203+
}
204+
191205
// manually send data through wireless links ( if var ID, transport data )
192206
if(initWirelessLink && resetWirelessPin != -1){
193207
initWirelessLink = false;

0 commit comments

Comments
 (0)