Traumflug / Teacup_Firmware

Firmware for RepRap and other 3D printers
http://forums.reprap.org/read.php?147
GNU General Public License v2.0
310 stars 198 forks source link

simulator: Fix argument parsing. #298

Closed teythoon closed 6 years ago

teythoon commented 6 years ago

When getopt_long sets *flag to val, it returns 0. Previously this was considered an error.

Traumflug commented 6 years ago

Thanks for the contribution!

I had a similar commit locally already (and forgot to push this), so I mixed these two and put it onto branch experimental: https://github.com/Traumflug/Teacup_Firmware/commit/7760ef3a345035d7bef2519c7a768610d6b93155