Array Size Error in GetPrintableDeviceMode On 32-Bit Architecture Issue #73 Thotro - Arduino-Dw1000 GitHub
Array Size Error in GetPrintableDeviceMode On 32-Bit Architecture Issue #73 Thotro - Arduino-Dw1000 GitHub
architecture #73
Open MikeS159 opened this issue on Mar 30, 2016 · 1 comment
No one assigned
I just found out the hard way that 64 is not enough for getPrintableDeviceMode()... When powering up,
the default output goes to 79 characters. The result was a processor crash in my case (on Cortex Labels
M0+). The code would run once without problems, then the processor would hang. Switching to a 96 or
None yet
128 byte buffer fixes the issue.
This issue could affect other areas of the code base. Projects
None yet
@param[out] msgBuffer The String buffer to be filled with printable device information.
Provide 128 bytes , this should be sufficient.
So your buffer was too small, which has nothing to do with 32bit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
© 2017 GitHub, Inc. Terms Privacy Security Status Help Contact GitHub API Training Shop Blog About
https://github.com/thotro/arduino-dw1000/issues/73 1/1