Exemple #1
0
void protocol_step()
{
	if (protocol_next_step > task_get_ms_tick())
		return;

	char buffer[128];

	switch (config.connectivity.protocol)
	{
		case(PROTOCOL_DIGIFLY):
			protocol_digifly_step(buffer);
		break;

		case(PROTOCOL_LK8EX1):
			protocol_lk8ex1_step(buffer);
		break;

		case(PROTOCOL_BLUEFLY):
			protocol_bluefly_step(buffer);
		break;

		case(PROTOCOL_FLYNET):
			protocol_flynet_step(buffer);
		break;
	}

	//XXX:outputs
	if (config.connectivity.uart_function > UART_FORWARD_OFF)
		uart_send(buffer);

	bt_send(buffer);
//	DEBUG("%s", buffer);
}
Exemple #2
0
void protocol_step()
{
	if (protocol_next_step > task_get_ms_tick())
		return;

	char buffer[512];

	switch (config.system.protocol)
	{
		case(PROTOCOL_DIGIFLY):
			protocol_digifly_step(buffer);
		break;

		case(PROTOCOL_LK8EX1):
			protocol_lk8ex1_step(buffer);
		break;

		case(PROTOCOL_BLUEFLY):
			protocol_bluefly_step(buffer);
		break;
	}

	//XXX:outputs
	bt_send(buffer);
//	DEBUG("%s", buffer);
}
Exemple #3
0
void protocol_step()
{
	if (protocol_next_step > task_get_ms_tick())
		return;

	switch (config.connectivity.protocol)
	{
		case(PROTOCOL_DIGIFLY):
			protocol_digifly_step();
		break;

		case(PROTOCOL_LK8EX1):
			protocol_lk8ex1_step();
		break;

		case(PROTOCOL_BLUEFLY):
			protocol_bluefly_step();
		break;

		case(PROTOCOL_SKYBEAN):
			protocol_skybean_step();
		break;
	}
}