Open ronzeiller opened 4 years ago
I am shamed. Very basic error. Normally I handle those with dynamic lists, so this has not been on "production" use for me.
Will you pull fix, when you have added more sentences?
Just saw, that you have quite often no break in switch/case functions. (All examples with those handles and a lot in your library code.
Normally I would say if it is let´s say the last case 129029UL, why should the missing breaks of the earlier case xxx: then harm?
Hi Timo,
in example NMEA0183/Examples/NMEA2000ToNMEA0183/
there is:
I was adding
case 129038UL: HandleAISClassAPosReport(N2kMsg); // AIS Class A Position Report
and got many false returns, because every PGN from all cases were sent to on
ParseN2kPGN129038
function.I added
break;
to eachcase
line and now it works.