Skip to content

Commit

Permalink
Update cantransmit.c
Browse files Browse the repository at this point in the history
  • Loading branch information
currentleak authored Oct 19, 2024
1 parent abf9eec commit bed3947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cantransmit.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int main(int argc, char **argv)
*/
if(argc == 2) // si un argument est passé au programme, on l'assigne au nom da l'interface CAN à utiliser
strcpy(ifr.ifr_name, argv[1]);
else strcpy(ifr.ifr_name, "can0" ); // par défaut l'interface can0
else strcpy(ifr.ifr_name, "vcan0" ); // par défaut l'interface can0

ioctl(s, SIOCGIFINDEX, &ifr);

Expand Down

0 comments on commit bed3947

Please sign in to comment.