Add complete master broadcast test
This commit is contained in:
parent
4b9fccc756
commit
cee5406ed7
4 changed files with 73 additions and 6 deletions
|
@ -23,8 +23,16 @@ SOFTWARE.
|
|||
*/
|
||||
|
||||
#include "protocol/frame_router.h"
|
||||
#include "protocol/transport.h"
|
||||
|
||||
static bool is_master;
|
||||
|
||||
void router_set_master(bool master) {
|
||||
is_master = master;
|
||||
}
|
||||
|
||||
void route_incoming_frame(uint8_t link, uint8_t* data, uint16_t size){
|
||||
transport_recv_frame(0, data, size);
|
||||
validator_send_frame(DOWN_LINK, data, size);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue