Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • As Majenko said, memcpy would be better than doing a byte-by-byte copy. Commented Mar 2, 2016 at 20:41
  • I hate it when people use non-standard arduino specific types like byte, when there is a perfectly good and standard uint8_t available... Commented Mar 3, 2016 at 20:14
  • As explained in the very thread you linked, ( type[] ){val, ues} is not a valid way to create a temporary in C++: stackoverflow.com/questions/15458883/… The solution is to typedef it. Commented Jun 26, 2016 at 7:12
  • Recent versions of the IDE use C++11, so whether or not it is valid in C++ doesn't really matter. Commented Jun 26, 2016 at 9:25