gerði breytingar pi megin og þarf að pusha fyrir tölvuna
This commit is contained in:
+3
-3
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Brings up can0 at the same bitrate as the Nucleo (CAN_BITRATE in src/can_send_test.c).
|
||||
# Usage: ./can_up.sh [bitrate] (default 250000)
|
||||
BITRATE=${1:-250000}
|
||||
# Brings up can0 at the same bitrate as the Nucleo (125000 in src/CAN_FRAME_TEST.c and src/can_send_test.c).
|
||||
# Usage: ./can_up.sh [bitrate] (default 125000)
|
||||
BITRATE=${1:-125000}
|
||||
|
||||
sudo ip link set can0 down 2>/dev/null
|
||||
sudo ip link set can0 up type can bitrate "$BITRATE"
|
||||
|
||||
Reference in New Issue
Block a user