Skip to content

Commit

Permalink
Merge pull request #2735 from roumy/master
Browse files Browse the repository at this point in the history
Correct Can Doc
  • Loading branch information
gpotter2 committed Jul 24, 2020
2 parents f49c96a + c94a09d commit 45c023e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/scapy/layers/automotive.rst
Expand Up @@ -59,7 +59,7 @@ Send and receive a message over Linux SocketCAN::
load_layer('can')
load_contrib('cansocket')

socket = CANSocket(iface='can0')
socket = CANSocket(channel='can0')
packet = CAN(identifier=0x123, data=b'01020304')

socket.send(packet)
Expand All @@ -75,7 +75,7 @@ Send a message over a Vector CAN-Interface::
load_contrib('cansocket')
from can.interfaces.vector import VectorBus

socket = CANSocket(iface=VectorBus(0, bitrate=1000000))
socket = CANSocket(channel=VectorBus(0, bitrate=1000000))
packet = CAN(identifier=0x123, data=b'01020304')

socket.send(packet)
Expand Down

0 comments on commit 45c023e

Please sign in to comment.