DragonflightDesign
Resource contributor
- Messages
- 1,355
- Country

In that... I can't turn it off!! I have tried
To check for the on/off state, I've been using
where (I've assumed) that a return of zero means that the ident is off. I must be doing/missing something really stupid - anyone know what it is? I can catagorically state that there is nowhere else in the code that the ADF is being set/unset/whatever.
Code:
trigger_key_event(KEY_RADIO_ADF_IDENT_DISABLE, 0);
trigger_key_event(KEY_RADIO_ADF_IDENT_TOGGLE, 0); // After checking for an 'on' state
trigger_key_event(KEY_RADIO_ADF_IDENT_SET, 0);
Code:
double getADFSound(int adf_number)
{
double data = 0;
if (adf_number == 1)execute_calculator_code("(A:ADF SOUND:1,Bool)", &data, NULL, NULL);
if (adf_number == 2)execute_calculator_code("(A:ADF SOUND:2,Bool)", &data, NULL, NULL);
return data;
}


