pyr0ball / pyr0piezo

An AVR/ARM based piezoelectric sensor for use in ultra-precise applications
https://docs.pyroballpcbs.com/
Other
71 stars 23 forks source link

Minor optimizations #25

Closed foodbandlt closed 5 years ago

foodbandlt commented 5 years ago

Defines save flash and progmem and elseifs increase execution speed on code repeated on every loop. Saves approx 153 bytes of flash on the 88.

Side note, something funky happened with the spacing. Fixed it, but it's slightly different than what it was before.

If anything that uses a #define needs to be changed via serial input later, it will need to be changed back to a regular variable.