2016-04-02 09:03:03 +02:00
|
|
|
#include "cw.h"
|
|
|
|
#include "dbg.h"
|
|
|
|
|
2018-03-17 17:29:09 +01:00
|
|
|
/*
|
2016-04-02 09:03:03 +02:00
|
|
|
int cw_out_radio_administrative_states(struct conn *conn, struct cw_action_out *a, uint8_t * dst)
|
|
|
|
{
|
|
|
|
cw_dbg(DBG_X,"Radio admin updater");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int l=0;
|
|
|
|
MAVLITER_DEFINE(it,conn->radios_upd);
|
|
|
|
mavliter_foreach(&it){
|
|
|
|
struct mbag_item *i = mavliter_get(&it);
|
|
|
|
if ( i->type != MBAG_MBAG ) {
|
|
|
|
continue;
|
|
|
|
}
|
2018-03-03 17:42:28 +01:00
|
|
|
l+=cw_put_elem_radio_administrative_state(dst+l,i->u1.iid,i->u2.data);
|
2016-04-02 09:03:03 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
return l;
|
|
|
|
}
|
|
|
|
|
2018-03-17 17:29:09 +01:00
|
|
|
*/
|