Commit 128f945b authored by Franksen, Benjamin's avatar Franksen, Benjamin
Browse files

fix: the vcan2 driver is /dev/vcan, not /dev/vcan2

parent 681c4852
......@@ -110,9 +110,9 @@ int vcanConfigCards(int base_addr, int max_cards)
base_addr = VCAN_DEFAULT_BASE_ADDR;
}
if (vcanDrvp(base_addr, VCAN_INT_VEC_BASE, max_cards) == 0) {
handle = open("/dev/vcan2", O_WRONLY, 0666);
handle = open("/dev/vcan", O_WRONLY, 0666);
if (handle == -1) {
fprintf(stderr, "error: vcan open failed (%s)\n", strerror(errno));
fprintf(stderr, "error: vcan2 open failed (%s)\n", strerror(errno));
return -1;
}
fprintf(stderr, "success: vcan2 driver configured\n");
......@@ -121,7 +121,7 @@ int vcanConfigCards(int base_addr, int max_cards)
if (vcan4Drvp(base_addr, VCAN_INT_VEC_BASE, max_cards) == 0) {
handle = open("/dev/vcan4", O_WRONLY, 0666);
if (handle == -1) {
fprintf(stderr, "error: vcan open failed (%s)\n", strerror(errno));
fprintf(stderr, "error: vcan4 open failed (%s)\n", strerror(errno));
return -1;
}
fprintf(stderr, "success: vcan4 driver configured\n");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment