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_init shopuld be public #432

Open
cosina opened this issue Oct 7, 2024 · 1 comment
Open

CAN_init shopuld be public #432

cosina opened this issue Oct 7, 2024 · 1 comment

Comments

@cosina
Copy link

cosina commented Oct 7, 2024

Then the application can call CAN_Ini if, for whatever reason, communication can not be established upon starting EPS32. In my case ESP32 is tarted before power to NMEA was provided.

  if ( updReinit.Update( 50000 ) ) {  // not to often
    unsigned int bus_status = MODULE_CAN->SR.B.BS;
    if ( bus_status == 1) {
       // bus off - reinit
      NMEA2000.CAN_init();
      TRACE( "Reinit bus" ); 
    }
  }
@ttlappalainen
Copy link
Owner

No. That should be handled on higher level on tNMEA2000, since also it has to be restarted. I have that on my version, but have not published it.

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

2 participants