generic radio out

FossilOrigin-Name: fb1cafa8c4a7d5a3f6ac942c6e196aca619d3ee21db5c249e2ec2c15b0b777cb
This commit is contained in:
7u83@mail.ru 2016-04-11 02:15:50 +00:00
parent e9ab5f691b
commit 3b52279b4f

View File

@ -0,0 +1,22 @@
#include "action.h"
#include "cw.h"
int cw_out_radio_generic(struct conn *conn, struct cw_action_out *a, uint8_t * dst)
{
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;
}
cw_out_generic(conn,a,dst);
}
return l;
}