Added function to set all admin states.
FossilOrigin-Name: b46e9349732fa2a876989b8749f20ca6962b896a5c02b6059f28ce4ccee91385
This commit is contained in:
parent
fe1999c5e4
commit
fd2ee89991
@ -79,3 +79,14 @@ int cw_radio_set_admin_state(mbag_t radios,int rid, int state, int cause)
|
||||
}
|
||||
|
||||
|
||||
int cw_radio_set_all_admin_states(mbag_t radios,int state, int cause)
|
||||
{
|
||||
MAVLITER_DEFINE(it,radios);
|
||||
mavliter_foreach(&it){
|
||||
mbag_item_t *i = mavliter_get(&it);
|
||||
cw_radio_set_admin_state(radios,i->iid,state,cause);
|
||||
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user