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

Don't return from terminalError #30

Closed chrisroos closed 12 years ago

chrisroos commented 12 years ago

This makes the sketch slightly smaller (saving 16 bytes under Arduino 1.0.1) and is consistent with how we currently terminate when encountering a DHCP error. It'll also make it easier to use terminalError in the setup function. Without this change, we would've had to check the systemOK boolean to see whether we could continue with setup.

chrisroos commented 12 years ago

I would've popped this straight into master but wanted to check that this approach, particularly the use of the infinite loop to 'terminate' the process, is valid. If it is valid, then I'm happy to merge this myself and start using terminalError in the case that DHCP fails.