Skip to content

Commit 999c650

Browse files
rnd-ashhartkopp
authored andcommitted
slcan: increase BTR char limit to 8 for 32bit BTR
As required by some Atmel MCU SLCAN implementations. Signed-off-by: Oliver Hartkopp <[email protected]>
1 parent 2323d50 commit 999c650

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

slcan_attach.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ int main(int argc, char **argv)
141141

142142
case 'b':
143143
btr = optarg;
144-
if (strlen(btr) > 6)
144+
if (strlen(btr) > 8)
145145
print_usage(argv[0]);
146146
break;
147147

slcand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ int main(int argc, char *argv[])
246246
break;
247247
case 'b':
248248
btr = optarg;
249-
if (strlen(btr) > 6)
249+
if (strlen(btr) > 8)
250250
print_usage(argv[0]);
251251
break;
252252
case 'F':

0 commit comments

Comments
 (0)