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

@ -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;