Andrea Di Paola replied to the topic 'Hide default INDI properties' in the forum. 8 years ago

Possibly I still need some help...

In my code I have two ISGetProperties functions that call eachother:

// the first 
void ISGetProperties(const char *dev)
{
    if(dev && strcmp(mydev, dev)) return;
    ISInit();
    mydriverclass->ISGetProperties(dev);
}

// and the second
void MyDriverClass::ISGetProperties(const char *dev)
{
    INDI::Telescope::ISGetProperties(dev);

    // some unrelated code here

    addAuxControls();
}

unfortunately I could not find where to put the following code:
deleteProperty(PortTP.name);
deleteProperty(BaudRateSP.name);

I suppose the second to be the function I should change, but the deleteProperty calls do not work either before or after the call to the INDI::Telescope::ISGetProperties(dev) function. What am I doing wrong?

thanks

Read More...