Fix source formatting

This commit is contained in:
Collin Kidder
2017-11-29 20:28:43 -05:00
parent c90d15b5bb
commit 3d5c4c55c6
+11 -9
View File
@@ -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!");
}
}
}
``
}