Added new messages after changing baud rate
This commit is contained in:
parent
a60277a5e6
commit
eb96afcd7c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user