Closed agk1190 closed 1 year ago
You may be the first using N2kMessagesEnumToStr, which explains errors. Your notices are correct. I'll add fixed. Would be also probably best to change every const char tN2kXTEModeStrs[] -> const char const tN2kXTEModeStrs[] When arrays is defined as const, on some boards (ESP32, Teensy) these will be totally saved to flash. With current definition they will be loaded to RAM.
Thank you for fixing it, Timo. This library has been amazing so far!
I was not aware that const char* const saved to flash on ESP32, so thank you for that info.
I see that the changes made it into master
on Nov 26, 2022 in this commit. Thanks!
I am using this library in a project and have noticed that in the
N2kMessagesEnumToStr
header file, there are a couple of potential errors. My code will not compile without making the following changes...Firstly, on line 104 of
N2kMessagesEnumToStr.h
, theMakeN2kEnumTypeToStrFunc
function under thetN2kMagneticVariationStrs
array has the argumenttN2kSpeedWaterReferenceTypeStrs
. Is this possibly a copy and paste error from the 2 lines above it (first 2 lines in block below)? Should it instead betN2kMagneticVariationStrs
which would then match the format of all the other code in the file?Secondly, when I try to use the
tN2kXTEMode
type fromN2kTypes.h
, I geterror unless I add the following code to the end of
N2kMessagesEnumToStr.h
.Is this something that should or needs to be added to the
N2kMessagesEnumToStr
header file?Please let me know if I am misunderstanding something or if this is something that should be added to the library. Thanks,