As investigated by Thorsten Godau the bitrate can only be set after the
slcan adapter is in 'close' state.
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Tested-by: Thorsten Godau <dl9sec@gmx.net>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@1229
030b6a49-0b11-0410-94ab-
b0dab22257f2
if (waitkey || !detach) {
if (speed) {
- sprintf(buf, "S%s\r", speed);
+ sprintf(buf, "C\rS%s\r", speed);
write(fd, buf, strlen(buf));
}
if (btr) {
- sprintf(buf, "s%s\r", btr);
+ sprintf(buf, "C\rs%s\r", btr);
write(fd, buf, strlen(buf));
}