Fix source formatting
This commit is contained in:
@@ -86,18 +86,19 @@ uds.sendUDS(bus, id, service, sublen, subfunc, length, data) - Sends a UDS messa
|
||||
A full example script
|
||||
=====================
|
||||
|
||||
``
|
||||
var newID = 0; //set this to the ID you want your RLEC to become
|
||||
::
|
||||
|
||||
function setup ()
|
||||
{
|
||||
var newID = 0; //set this to the ID you want your RLEC to become
|
||||
|
||||
function setup ()
|
||||
{
|
||||
host.log("RLEC ID Changer");
|
||||
can.setFilter(0x0, 0x0F, 0);
|
||||
can.sendFrame(0, 0x7E0, 8, [0x0d, 1, 0, 0, 0, 0, 0, 0]);
|
||||
}
|
||||
}
|
||||
|
||||
function gotCANFrame (bus, id, len, data)
|
||||
{
|
||||
function gotCANFrame (bus, id, len, data)
|
||||
{
|
||||
var dataBytes = [];
|
||||
|
||||
if (len == 8)
|
||||
@@ -130,5 +131,6 @@ function gotCANFrame (bus, id, len, data)
|
||||
host.log("ID Reprogramming Successful!");
|
||||
}
|
||||
}
|
||||
}
|
||||
``
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user