new: implemented can.inject

This commit is contained in:
evilsocket 2024-08-09 16:19:35 +02:00
parent 5fe3ef3d52
commit fd05df613e
3 changed files with 37 additions and 0 deletions

View file

@ -62,6 +62,7 @@ func (mod *CANModule) Configure() error {
}
mod.recv = socketcan.NewReceiver(mod.conn)
mod.send = socketcan.NewTransmitter(mod.conn)
return nil
}
@ -124,6 +125,7 @@ func (mod *CANModule) Stop() error {
mod.conn.Close()
mod.conn = nil
mod.recv = nil
mod.send = nil
mod.dbc = nil
mod.dbcPath = ""
}