×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Programming radio-Buttons, strange behaviour

  • Posts: 66
  • Thank you received: 9
Hi : )

I'm ending alpyspectrograph driver (to work with this : www.shelyak.com/produit.php?id_produit=92&id_rubrique=17 )

And ther's something I d'ont understand :
What I want : That only ONE radio button could be on.

What I'm using in code : IUFillSwitchVector(&LampSP, LampS, 3, getDeviceName(), "CALIB_LAMPS", "Calibration lamps", CALIBRATION_UNIT_TAB, IP_RW, ISR_ATMOST1, 0, IPS_IDLE);

But ISR_ATMOST1 dosen't work... I can choose another and the first clicked is always on... What do I miss ?
7 years 8 months ago #9489

Please Log in or Create an account to join the conversation.

  • Posts: 173
  • Thank you received: 19
Maybe try ISR_1OFMANY...and you may need to update the state of the switch with IUUpdateSwitch
The following user(s) said Thank You: Jasem Mutlaq
Last edit: 7 years 8 months ago by Jon.
7 years 8 months ago #9498

Please Log in or Create an account to join the conversation.

As Jon said! Do you have the code for your driver hosted somewhere so we can take a look at it?

EDIT: Is it this one? github.com/indilib/indi/tree/master/3rdparty/indi-shelyak
Last edit: 7 years 8 months ago by Jasem Mutlaq.
7 years 8 months ago #9511

Please Log in or Create an account to join the conversation.

  • Posts: 66
  • Thank you received: 9
7 years 7 months ago #9699

Please Log in or Create an account to join the conversation.

Time to create page: 0.225 seconds