NMEA2000
NMEA2000 copied to clipboard
Some versions of round() dont behave as expected.
https://github.com/ttlappalainen/NMEA2000/blob/c2de650e9abe943da7c87f6a6c03796c4f7b3234/src/N2kMsg.cpp#L587
eg https://github.com/SpenceKonde/megaTinyCore/issues/738
there may be other round macros that behave unexpectedly, round((value/precision)) should protect. I was seeing less precision that expected.
This is now published.