exciting-io / printer

Tools for exploring the possibilities of "internet of things" printing.
http://exciting.io/printer
MIT License
481 stars 94 forks source link

Use an array of type char rather than pointers. #33

Closed chrisroos closed 12 years ago

chrisroos commented 12 years ago

This reduces the sketch size by 26 bytes: saving 6 bytes by changing printerType, 6 bytes by changing sketchVersion and 14 bytes by changing host.

chrisroos commented 12 years ago

This seems like a Good Thing but I wanted to check that this change isn't likely to introduce some crazy behaviour.

lazyatom commented 12 years ago

I don't know why the compiler is doing a better job with array-style strings than pointer ones, but I'm completely satisfied that they're equivalent. Merged!