c - Arduino crash after 6 hours -
i wrote arduino sketch arduino uno rev3 monitor temperature , electrical current. arduino 'crashes' after 6+ hours.
after resetting arduino, runs again. did write cause problem in code?
code, @ pastebin
well, 1 thing, you're overflowing string buffers.
you've assigned 15 bytes cc
char cc[15]; but have code:
strncat(cc,o,20); strncat(cc,"|",20); strncat(cc,m,20); strncat(cc,"|",20); strncat(cc,n,20); that put 62 bytes in there. same true of other buffers.
in addition, you're using multiple 3rd party libraries. 1 of contain memory leak.
Comments
Post a Comment