Added new messages after changing baud rate

This commit is contained in:
Stefan Wahren 2012-05-20 03:31:05 +02:00
parent a60277a5e6
commit eb96afcd7c

View File

@ -77,12 +77,15 @@ main(int argc, char **argv)
printf("No reply from device\n");
return 1;
}
if (mbus_frame_type(&reply) != MBUS_FRAME_TYPE_ACK)
else if (mbus_frame_type(&reply) != MBUS_FRAME_TYPE_ACK)
{
printf("Unknown reply:\n");
mbus_frame_print(&reply);
}
else
{
printf("Switched baud rate of device to %d\n", target_baudrate);
}
mbus_disconnect(handle);
return 0;