Renamed mbus_recv_frame_dummy() to more descriptive mbus_purge_frames()

This commit is contained in:
jakubovsky
2012-07-09 10:48:13 +02:00
parent e70c07e8f3
commit 5f9052b284
5 changed files with 10 additions and 10 deletions

View File

@ -116,7 +116,7 @@ main(int argc, char **argv)
return 1;
}
mbus_recv_frame_dummy(handle);
mbus_purge_frames(handle);
//
// resend SND_NKE, maybe the first get lost
@ -135,7 +135,7 @@ main(int argc, char **argv)
return 1;
}
mbus_recv_frame_dummy(handle);
mbus_purge_frames(handle);
if (strlen(addr_str) == 16)
{

View File

@ -114,7 +114,7 @@ main(int argc, char **argv)
if (ret == -2)
{
/* check for more data (collision) */
mbus_recv_frame_dummy(handle);
mbus_purge_frames(handle);
printf("Collision at address %d\n", address);
continue;
}
@ -122,7 +122,7 @@ main(int argc, char **argv)
if (mbus_frame_type(&reply) == MBUS_FRAME_TYPE_ACK)
{
/* check for more data (collision) */
if (mbus_recv_frame_dummy(handle))
if (mbus_purge_frames(handle))
{
printf("Collision at address %d\n", address);

View File

@ -97,7 +97,7 @@ main(int argc, char **argv)
if (ret == -2)
{
/* check for more data (collision) */
mbus_recv_frame_dummy(handle);
mbus_purge_frames(handle);
printf("Collision at address %d\n", address);
continue;
}
@ -105,7 +105,7 @@ main(int argc, char **argv)
if (mbus_frame_type(&reply) == MBUS_FRAME_TYPE_ACK)
{
/* check for more data (collision) */
if (mbus_recv_frame_dummy(handle))
if (mbus_purge_frames(handle))
{
printf("Collision at address %d\n", address);
continue;