DarrenR wrote:
- Code: Select all
local h = CanComms.RxOpenStandardBuffered(0, 0x100, 0xF, true);
local canID = 0x105;
if (CanComms.RxFindMessage(h, canID, 0, 0, 0)) //finds the newest message with id 0x105 (set in by the local).
{
Channel = CanComm.GetUnsignedInteger(h, 16, 16);
}
if (CanComms.RxFindMessage(h, canID, 0, 0, 0))
if (CanComms.RxFindMessage(h, canID, 0, 0, 0x0))
MalcolmG wrote:DarrenR wrote:
- Code: Select all
local h = CanComms.RxOpenStandardBuffered(0, 0x100, 0xF, true);
local canID = 0x105;
if (CanComms.RxFindMessage(h, canID, 0, 0, 0)) //finds the newest message with id 0x105 (set in by the local).
{
Channel = CanComm.GetUnsignedInteger(h, 16, 16);
}
FYI it looks like this line:
- Code: Select all
if (CanComms.RxFindMessage(h, canID, 0, 0, 0))
actually needs to be like this for it to validate:
- Code: Select all
if (CanComms.RxFindMessage(h, canID, 0, 0, 0x0))
Users browsing this forum: No registered users and 6 guests