Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can.sendFrame bug in scripting interface #826

Open
gnoosuk opened this issue Aug 10, 2024 · 0 comments
Open

can.sendFrame bug in scripting interface #826

gnoosuk opened this issue Aug 10, 2024 · 0 comments

Comments

@gnoosuk
Copy link

gnoosuk commented Aug 10, 2024

Good day. I found "can.sendFrame()" always sends a message to interface #1 regardless of the function parameter. I use the peak interface (2 can buses) under Windows 11 x64. I tried different versions - the behavior is the same everywhere. An example of a simple script is below:
`function setup ()
{
can.setFilter(0x000, 0x000, 0);
can.setFilter(0x000, 0x000, 1);
}

function gotCANFrame (bus, id, len, data)
{
if (bus == 0) {
can.sendFrame(1, id, len, data);
return;
}
if (bus == 1) {
can.sendFrame(0, id, len, data);
return;
}
}`
In addition, when trying to recompile the script or close it, the program closes itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant